diff options
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() |