From 9d1dc9138fdb0377c5eb93da285893ba97e43a44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Tue, 16 May 2017 14:21:03 +0200 Subject: [PATCH] Make the default build type Release (instead of empty string) --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ba20de1..4cc9898 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,11 @@ set(${PROJECT_NAME}_VERSION_MAJOR 5) set(${PROJECT_NAME}_VERSION_MINOR 0) set(${PROJECT_NAME}_VERSION_SUFFIX "~dev") +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "Debug" CACHE STRING + "Build type (Release/Debug/RelWithDebInfo/MinSizeRel)" FORCE) +endif() + # ## Find optional instrumentation libraries that will be used in debug only # -- 2.45.2