From cfb336e17496561c86e591489712c2a60d6d1ea7 Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Mon, 14 May 2018 11:58:43 +0200 Subject: [PATCH] CMakeLists.txt: Default build type to RelWithDebInfo if none is defined --- CMakeLists.txt | 4 ++-- scripts/clean-build.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3901428..df9d6fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,8 +5,8 @@ include(CTest) include(GNUInstallDirs) if (NOT CMAKE_BUILD_TYPE) - message(STATUS "No build type selected, default to release") - set(CMAKE_BUILD_TYPE "release") + message(STATUS "No build type selected, default to RelWithDebInfo") + set(CMAKE_BUILD_TYPE "RelWithDebInfo") endif() set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake) diff --git a/scripts/clean-build.sh b/scripts/clean-build.sh index fb05249..3e1e766 100755 --- a/scripts/clean-build.sh +++ b/scripts/clean-build.sh @@ -55,7 +55,7 @@ cleanup mkdir build || rm -rf build/* cd build -cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo +cmake .. VERBOSE=1 make -j10 VERBOSE=1 make test cd ..