From 4c791586eee209a56706f312c91a0c6a44542fa1 Mon Sep 17 00:00:00 2001 From: Alexander Straub Date: Wed, 11 Apr 2018 17:13:50 +0200 Subject: Suffixes for different build types (#191) --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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 $ $) +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} -- cgit v1.2.3