From b76732b45fa3492b34731aabc28f3b42f3d983c3 Mon Sep 17 00:00:00 2001 From: Matan Nassau Date: Sat, 3 Aug 2019 14:07:14 -0400 Subject: [PATCH] fix cmake option USE_POSTFIX 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}) $ $) - 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()