Tweaking the message.

This commit is contained in:
Daniel Lemire 2020-06-17 12:36:36 -04:00
parent 0b9df6d8c4
commit e4f33b5970
1 changed files with 3 additions and 5 deletions

View File

@ -19,12 +19,10 @@ endif()
if (NOT CMAKE_BUILD_TYPE)
message(STATUS "No build type selected, default to Release")
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
if(SIMDJSON_SANITIZE)
message(STATUS "No build type selected, default to Debug since you have actived the sanitizer")
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build." FORCE)
else()
message(STATUS "No build type selected, default to Release")
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
message(WARNING "No build type selected and you have enabled the sanitizer. Consider setting CMAKE_BUILD_TYPE to Debug to help identify the eventual problems.")
endif()
endif()