aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 21fe7ab..6ed4498 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,8 +19,9 @@ project(libnitrokey CXX)
set(CMAKE_CXX_STANDARD 14)
OPTION(COMPILE_TESTS "Compile tests" FALSE)
-set(CMAKE_BUILD_TYPE RelWithDebInfo)
-
+IF (NOT CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE RelWithDebInfo)
+ENDIF()
MESSAGE("Build type: ${CMAKE_BUILD_TYPE}")
include_directories(include)