From 9c24f835372cc28d255557bd00f9d28598a07ebe Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Mon, 6 Feb 2017 12:12:13 +0100 Subject: Build Release with debug info when none build type selected Signed-off-by: Szczepan Zalega --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.1