diff options
author | Robert <krzmbrzl@gmail.com> | 2020-09-17 16:18:18 +0300 |
---|---|---|
committer | Robert <krzmbrzl@gmail.com> | 2020-09-17 16:18:18 +0300 |
commit | 72c0577f322120e82568ac1dedb2ab9eab16e88f (patch) | |
tree | abf38533c1e7f91e9fb7b9618d53b742fc737cb7 /CMakeLists.txt | |
parent | 5d238094ae4e1d599b52e3e4a94e5241fc93bd04 (diff) |
BUILD(cmake): Display Release build type properly
Previously an empty String would be printed as the build type as the
Release-branch wasn't handled properly in the cmake file.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0580d4955..e3fe096c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,7 +77,9 @@ else() ) set(BUILD_STR "Debug") - elseif(NOT ${CMAKE_BUILD_TYPE} STREQUAL "Release") + elseif(${CMAKE_BUILD_TYPE} STREQUAL "Release") + set(BUILD_STR "Release") + else() message(FATAL_ERROR "Unsupported build type! Please choose either \"Debug\" or \"Release\".") endif() endif() |