diff --git a/build/cmake/CMakeLists.txt b/build/cmake/CMakeLists.txt index 8f3e803..419c243 100644 --- a/build/cmake/CMakeLists.txt +++ b/build/cmake/CMakeLists.txt @@ -181,7 +181,11 @@ if (BUILD_UTILS) list (APPEND GLEWINFO_SRC_FILES ${GLEW_DIR}/build/glewinfo.rc) endif () add_executable (glewinfo ${GLEWINFO_SRC_FILES}) - target_link_libraries (glewinfo glew) + if(NOT DEFINED BUILD_SHARED_LIBS OR BUILD_SHARED_LIBS) + target_link_libraries (glewinfo glew) + else() + target_link_libraries (glewinfo glew_s) + endif() if (NOT WIN32) target_link_libraries(glewinfo ${X11_LIBRARIES}) endif () @@ -191,7 +195,11 @@ if (BUILD_UTILS) list (APPEND VISUALINFO_SRC_FILES ${GLEW_DIR}/build/visualinfo.rc) endif () add_executable (visualinfo ${VISUALINFO_SRC_FILES}) - target_link_libraries (visualinfo glew) + if(NOT DEFINED BUILD_SHARED_LIBS OR BUILD_SHARED_LIBS) + target_link_libraries (visualinfo glew) + else() + target_link_libraries (visualinfo glew_s) + endif() if (NOT WIN32) target_link_libraries(visualinfo ${X11_LIBRARIES}) endif ()