sanitize on debug by default

This commit is contained in:
veclav talica 2024-09-26 21:44:31 +03:00
parent 5d6a3a5aec
commit b4b9e0ebef

View File

@ -13,6 +13,10 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug) set(CMAKE_BUILD_TYPE Debug)
endif() endif()
if(CMAKE_BUILD_TYPE MATCHES Debug)
set(TWN_SANITIZE ON)
endif()
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(TWN_TARGET townengine CACHE INTERNAL "") set(TWN_TARGET townengine CACHE INTERNAL "")