summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Straub <alexander.straub@visus.uni-stuttgart.de>2018-04-11 17:13:50 +0200
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2018-04-11 08:13:50 -0700
commit4c791586eee209a56706f312c91a0c6a44542fa1 (patch)
tree929516d74c6cd51cf7a7478244cc25d18c54792c
parent552773269ec557644b6ddd02d37923c210fa2364 (diff)
Suffixes for different build types (#191)
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d7bc1b2..a2b150d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -64,6 +64,10 @@ target_include_directories(pugixml PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/src>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}${INSTALL_SUFFIX}>)
+if(CMAKE_CONFIGURATION_TYPES)
+ set_target_properties(pugixml PROPERTIES DEBUG_POSTFIX "_d" MINSIZEREL_POSTFIX "_m" RELWITHDEBINFO_POSTFIX "_r")
+endif()
+
install(TARGETS pugixml EXPORT pugixml-config
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}${INSTALL_SUFFIX}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}${INSTALL_SUFFIX}