added d suffix for debug builds of demos as well, MSVC only
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1326 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
299a491ae2
commit
f0278c8e7a
@ -380,11 +380,17 @@ MACRO(ADD_DEMO name)
|
||||
IF(BUILD_SHARED_LIBS)
|
||||
ADD_EXECUTABLE(${name} ${ARGN})
|
||||
TARGET_LINK_LIBRARIES(${name} ${DEMO_LIBS} freeglut)
|
||||
IF(WIN32 AND MSVC)
|
||||
SET_TARGET_PROPERTIES(${name} PROPERTIES DEBUG_POSTFIX d)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
IF(BUILD_STATIC_LIBS)
|
||||
ADD_EXECUTABLE(${name}_static ${ARGN})
|
||||
TARGET_LINK_LIBRARIES(${name}_static ${DEMO_LIBS} freeglut_static)
|
||||
SET_TARGET_PROPERTIES(${name}_static PROPERTIES COMPILE_FLAGS -DFREEGLUT_STATIC)
|
||||
IF(WIN32 AND MSVC)
|
||||
SET_TARGET_PROPERTIES(${name}_static PROPERTIES DEBUG_POSTFIX d)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
ENDMACRO()
|
||||
|
Reference in New Issue
Block a user