Skip to content

Commit

Permalink
CMake: fix single executable builds on Windows that failed after 43f4550
Browse files Browse the repository at this point in the history


The fix from 1599c31 missed changing one instance of "OpenGL" to "OpenGL::GL" in glew_static, resulting in single executable/service builds inheriting the "OpenGL.lib" bogus dependency
  • Loading branch information
brussig-tud committed Jan 27, 2025
1 parent 6b126f6 commit 2094e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 3rd/glew/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ install(TARGETS glew EXPORT cgv_3rd DESTINATION ${CGV_BIN_DEST})

# Static Library
add_library(glew_static STATIC glew.c)
target_link_libraries(glew_static OpenGL)
target_link_libraries(glew_static OpenGL::GL)
target_compile_definitions(glew_static PUBLIC GLEW_STATIC)
target_include_directories(glew_static PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
Expand Down

0 comments on commit 2094e51

Please sign in to comment.