From 72c0577f322120e82568ac1dedb2ab9eab16e88f Mon Sep 17 00:00:00 2001 From: Robert Date: Thu, 17 Sep 2020 15:18:18 +0200 Subject: 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. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') 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() -- cgit v1.2.3