Skip to content

Commit 2e902f2

Browse files
committed
hello_xr: Make sure to link gfxwrapper to gdi32
1 parent 9674471 commit 2e902f2

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
@@ -112,6 +112,10 @@ if(OPENGL_FOUND AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/common/gfxwrapper_opengl
112112
else()
113113
target_link_libraries(openxr-gfxwrapper PUBLIC ${OPENGL_LIBRARIES})
114114
endif()
115+
if(WIN32)
116+
target_link_libraries(openxr-gfxwrapper PUBLIC gdi32)
117+
endif()
118+
115119
message(STATUS "Enabling OpenGL support in hello_xr, loader_test, and conformance, if configured")
116120
endif()
117121

0 commit comments

Comments
 (0)