Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRoc2021-08-28 00:47:54 +0200
committerGitHub2021-08-28 00:47:54 +0200
commit9ac9fb164e5b20ad9e2f59556b75b9e6f1600f68 (patch)
tree75560fc2ef679f065d9567e5296b2b8366be14fd /src
parent07018e2fba61234b54dfd2633c2501a911938614 (diff)
downloadcatch3-9ac9fb164e5b20ad9e2f59556b75b9e6f1600f68.tar.gz
Suffix the library name with 'd' for debug builds
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
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