You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by ab...@apache.org on 2020/05/18 12:05:22 UTC
[celix] 01/01: Added debug postfix to executables if debug is build.
This is an automated email from the ASF dual-hosted git repository.
abroekhuis pushed a commit to branch feature/executable_debug_postfix
in repository https://gitbox.apache.org/repos/asf/celix.git
commit 19bce3402164ab4e4ec0cffb965923cae3891619
Author: Alexander Broekhuis <al...@luminis.eu>
AuthorDate: Mon May 18 14:04:16 2020 +0200
Added debug postfix to executables if debug is build.
---
CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index abe182c..542fe32 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -110,6 +110,10 @@ set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O0 -g -DNDEBUG ${CMAKE_CXX_FLAGS}")
set(CMAKE_C_FLAGS_RELEASE "-O0 -DNDEBUG ${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS_RELEASE "-O0 -DNDEBUG ${CMAKE_CXX_FLAGS}")
+if (CMAKE_BUILD_TYPE STREQUAL "Debug")
+ set(CMAKE_EXECUTABLE_SUFFIX ${CMAKE_DEBUG_POSTFIX})
+endif()
+
# Set version for the framework package/release
set(CELIX_MAJOR "2")
set(CELIX_MINOR "2")