diff --git a/CMakeLists.dist-minimal b/CMakeLists.dist-minimal index f9307099..90157bc1 100644 --- a/CMakeLists.dist-minimal +++ b/CMakeLists.dist-minimal @@ -70,7 +70,7 @@ endif() find_package(Threads REQUIRED) if(NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE Release CACHE STRING + set(CMAKE_BUILD_TYPE MinSizeRel CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE) endif() diff --git a/CMakeLists.txt b/CMakeLists.txt index bd837af4..97c756d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,7 +64,7 @@ else() endif() if(NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE Release CACHE STRING + set(CMAKE_BUILD_TYPE MinSizeRel CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE) endif()