mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-22 05:45:07 +00:00
Link the UTILS to the static library if BUILD_SHARED_LIBS is disabled.
This commit is contained in:
parent
882aef9761
commit
5ea705737a
@ -181,7 +181,11 @@ if (BUILD_UTILS)
|
||||
list (APPEND GLEWINFO_SRC_FILES ${GLEW_DIR}/build/glewinfo.rc)
|
||||
endif ()
|
||||
add_executable (glewinfo ${GLEWINFO_SRC_FILES})
|
||||
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})
|
||||
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 ()
|
||||
|
Loading…
Reference in New Issue
Block a user