mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-26 00:21:57 +00:00
Prevent output name collision
This commit is contained in:
parent
a553506b46
commit
9f3df6c128
@ -80,9 +80,15 @@ endif()
|
||||
if(glew-cmake_BUILD_SHARED)
|
||||
add_library(libglew_shared SHARED ${LIBGLEW_SRCS})
|
||||
|
||||
set_target_properties(libglew_shared PROPERTIES
|
||||
OUTPUT_NAME "glew"
|
||||
DEBUG_POSTFIX d)
|
||||
if(glew-cmake_BUILD_STATIC)
|
||||
set_target_properties(libglew_shared PROPERTIES
|
||||
OUTPUT_NAME "glew-shared"
|
||||
DEBUG_POSTFIX d)
|
||||
else()
|
||||
set_target_properties(libglew_shared PROPERTIES
|
||||
OUTPUT_NAME "glew"
|
||||
DEBUG_POSTFIX d)
|
||||
endif()
|
||||
|
||||
target_compile_definitions(libglew_shared PRIVATE GLEW_BUILD ${DEFINITIONS})
|
||||
target_include_directories(libglew_shared PUBLIC ${INCLUDE_DIR})
|
||||
|
Loading…
Reference in New Issue
Block a user