Skip to content

Commit 2dc9060

Browse files
committed
hello_xr: Make sure to link gfxwrapper to gdi32
1 parent 66352af commit 2dc9060

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ if((OPENGL_FOUND OR OpenGLES_FOUND) AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/comm
194194
)
195195
endif()
196196
set_target_properties(openxr-gfxwrapper PROPERTIES FOLDER ${HELPER_FOLDER})
197+
if(WIN32)
198+
target_link_libraries(openxr-gfxwrapper PUBLIC gdi32)
199+
endif()
200+
197201
message(STATUS "Enabling OpenGL support in hello_xr, loader_test, and conformance, if configured")
198202
endif()
199203

0 commit comments

Comments
 (0)