Fixed overwriting of CMake global output directory variables.

This commit is contained in:
Marc-Antoine Lortie
2020-08-07 16:04:39 -04:00
parent 4c8b9fb96d
commit 11daed69d3
8 changed files with 28 additions and 13 deletions

View File

@@ -59,6 +59,8 @@ ADD_EXECUTABLE( assimp_cmd
Export.cpp
)
TARGET_USE_COMMON_OUTPUT_DIRECTORY(assimp_cmd)
SET_PROPERTY(TARGET assimp_cmd PROPERTY DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
TARGET_LINK_LIBRARIES( assimp_cmd assimp ${ZLIB_LIBRARIES} )

View File

@@ -86,6 +86,8 @@ ADD_EXECUTABLE( assimp_viewer WIN32
txi.bmp
)
TARGET_USE_COMMON_OUTPUT_DIRECTORY(assimp_viewer)
SET_PROPERTY(TARGET assimp_viewer PROPERTY DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
IF ( MSVC )