diff --git a/CMakeLists.txt b/CMakeLists.txt index 18519c798..84de4d1db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2656,7 +2656,7 @@ if (SDL_ASAN) asan_check_add_debug_flag("leak") # The object size sanitizer has no effect on unoptimized builds on Clang, # but causes warnings. - if((NOT USE_CLANG) OR (CMAKE_BUILD_TYPE STREQUAL "")) + if((NOT USE_CLANG) OR ("${CMAKE_BUILD_TYPE}" STREQUAL "")) asan_check_add_debug_flag("object-size") endif() endif() @@ -2685,7 +2685,7 @@ foreach(_OPT ${ALLOPTIONS}) string(RANDOM LENGTH ${_PADLEN} ALPHABET " " _PADDING) message_tested_option(${_OPT} ${_PADDING}) endforeach() -if(CMAKE_BUILD_TYPE STREQUAL "Debug") +if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") message(STATUS "") message(STATUS " CMAKE_C_FLAGS_DEBUG: ${CMAKE_C_FLAGS_DEBUG}") message(STATUS " CMAKE_CXX_FLAGS_DEBUG: ${CMAKE_CXX_FLAGS_DEBUG}")