From 9ac9fb164e5b20ad9e2f59556b75b9e6f1600f68 Mon Sep 17 00:00:00 2001 From: Roc <1844478+ror3d@users.noreply.github.com> Date: Sat, 28 Aug 2021 00:47:54 +0200 Subject: [PATCH] Suffix the library name with 'd' for debug builds --- src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 26ebdf09..7e30c1a4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -249,6 +249,8 @@ if (ANDROID) target_link_libraries(Catch2 INTERFACE log) endif() +set_target_properties(Catch2 PROPERTIES DEBUG_POSTFIX "d") + # depend on bunch of C++11 and C++14 features to have C++14 enabled by default target_compile_features(Catch2 PUBLIC @@ -291,6 +293,7 @@ set_target_properties(Catch2WithMain PROPERTIES OUTPUT_NAME "Catch2Main" ) +set_target_properties(Catch2WithMain PROPERTIES DEBUG_POSTFIX "d") if (NOT_SUBPROJECT) # create and install an export set for catch target as Catch2::Catch