git repos / PlatformFolders

commit 0612064c

Poul Sander · 2021-07-20 22:24
0612064c3a59cf0a9e041f57f8734a0f573b09ae patch · browse files
parent 22fc4b255ba378a48a0454c65a53bb032568c3b0

No loner force postfix "d" in debug mode.
Can use CMAKE_DEBUG_POSTFIX if needed:
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_DEBUG_POSTFIX=_d ..

Changed files

M CMakeLists.txt before
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c67a24..1cad894 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -9,7 +9,7 @@ add_library(platform_folders
sago/platform_folders.cpp
)
-set_target_properties(platform_folders PROPERTIES DEBUG_POSTFIX d)
+set_target_properties(platform_folders PROPERTIES DEBUG_POSTFIX "${CMAKE_DEBUG_POSTFIX}")
# Creates an alias so that people building in-tree (instead of using find_package)...
# can still link against the same target