Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit 1531858

Browse files
cmake: fix default build type setting
1 parent 78b9a3c commit 1531858

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ set(predefined_build_types
4848
RelWithDebInfo
4949
MinSizeRel)
5050
if(NOT CMAKE_BUILD_TYPE)
51-
message(STATUS "CMAKE_BUILD_TYPE not set, setting the default one: ${DEFAULT_BUILD_TYPE}")
52-
set(CMAKE_BUILD_TYPE "${DEFAULT_BUILD_TYPE}"
53-
CACHE STRING "choose the type of build (${predefined_build_types})" FORCE STRINGS)
51+
set(CMAKE_BUILD_TYPE ${DEFAULT_BUILD_TYPE}
52+
CACHE STRING "choose the type of build (${predefined_build_types})" FORCE)
53+
message(STATUS "CMAKE_BUILD_TYPE not set, setting the default one: ${CMAKE_BUILD_TYPE}")
5454
else()
5555
message(STATUS "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
5656
if(NOT CMAKE_BUILD_TYPE IN_LIST predefined_build_types)

0 commit comments

Comments
 (0)