From c7f8dbee64d404e66e5d89946027794eac5c5421 Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Mon, 18 Jun 2018 01:45:58 +0300 Subject: CMake: Fixed configure when no CMAKE_BUILD_TYPE was defined --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 899839f..c26d5ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ IF(NOT MSVC AND NOT MSDOS) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra") ENDIF() -if(CMAKE_BUILD_TYPE STREQUAL "") +if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release") endif() -- cgit v1.2.3