aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMatan Nassau <matan.nassau@gmail.com>2019-08-04 16:15:10 -0400
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2019-08-04 13:15:10 -0700
commit4f6e7454fd4be6972d9d9683dad2f00d699090ac (patch)
tree70205866248846aeca2f1e2478142d3c12e07674 /CMakeLists.txt
parentc5752917c72da7cee2271394a827d022ccd4b367 (diff)
downloadpugixml-4f6e7454fd4be6972d9d9683dad2f00d699090ac.zip
pugixml-4f6e7454fd4be6972d9d9683dad2f00d699090ac.tar.gz
pugixml-4f6e7454fd4be6972d9d9683dad2f00d699090ac.tar.bz2
fix cmake option USE_POSTFIX (#283)
appending the suffix to the build product need not be a function of whether CMAKE_CONFIGURATION_TYPES is set. for example, having two ninja build trees---one for debug and another for release---is a fine use-case for USE_POSTFIX.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ec5add1..dca6fac 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -81,7 +81,7 @@ foreach(TARGET ${LIBRARY})
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/src>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}${INSTALL_SUFFIX}>)
- if(USE_POSTFIX AND CMAKE_CONFIGURATION_TYPES)
+ if(USE_POSTFIX)
set_target_properties(${TARGET} PROPERTIES DEBUG_POSTFIX "_d" MINSIZEREL_POSTFIX "_m" RELWITHDEBINFO_POSTFIX "_r")
endif()
endforeach()