From c803ad01f34cdd0bd348b773808fc136f33470ff Mon Sep 17 00:00:00 2001 From: James Jacobsson Date: Thu, 16 Feb 2017 05:18:07 +0100 Subject: [PATCH] Change default build type to RelWithDebInfo (#66) --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 96325547..c9df4da6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,11 @@ set(CMAKE_CXX_STANDARD 11) # configuration options #-------------------------------------------------- +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING + "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE) +endif() + option(BUILD_TOOLS "Build tools" ON) option(BUILD_TESTS "Build tests" ON)