mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-26 08:31:56 +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)
|
if(glew-cmake_BUILD_SHARED)
|
||||||
add_library(libglew_shared SHARED ${LIBGLEW_SRCS})
|
add_library(libglew_shared SHARED ${LIBGLEW_SRCS})
|
||||||
|
|
||||||
|
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
|
set_target_properties(libglew_shared PROPERTIES
|
||||||
OUTPUT_NAME "glew"
|
OUTPUT_NAME "glew"
|
||||||
DEBUG_POSTFIX d)
|
DEBUG_POSTFIX d)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_compile_definitions(libglew_shared PRIVATE GLEW_BUILD ${DEFINITIONS})
|
target_compile_definitions(libglew_shared PRIVATE GLEW_BUILD ${DEFINITIONS})
|
||||||
target_include_directories(libglew_shared PUBLIC ${INCLUDE_DIR})
|
target_include_directories(libglew_shared PUBLIC ${INCLUDE_DIR})
|
||||||
|
Loading…
Reference in New Issue
Block a user