aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-10-11 17:22:51 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-10-11 18:00:53 +0200
commit0316694202de043dd4eeaccd61f4b7b19959e024 (patch)
tree80f86b47a834bd3e8806787983f5e786edf7e2e1
parentd9adae46dae6e2176e8765368d2902cc24da688b (diff)
downloadlibnitrokey-0316694202de043dd4eeaccd61f4b7b19959e024.tar.gz
libnitrokey-0316694202de043dd4eeaccd61f4b7b19959e024.tar.bz2
Make Debug build by default on MacOS
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 643e630..a22380a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,7 +43,12 @@ OPTION(LIBNITROKEY_STATIC "Build libnitrokey statically" FALSE)
IF (NOT CMAKE_BUILD_TYPE)
- set(CMAKE_BUILD_TYPE RelWithDebInfo)
+ IF(APPLE)
+ # Issues occur when build with enabled optimizations
+ set(CMAKE_BUILD_TYPE Debug)
+ ELSE()
+ set(CMAKE_BUILD_TYPE RelWithDebInfo)
+ ENDIF()
ENDIF()
MESSAGE("${PROJECT_NAME}: Build type: ${CMAKE_BUILD_TYPE}")