diff --git a/CMakeLists.txt b/CMakeLists.txt index 569cb32..80e9132 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,10 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Debug) endif() +if(CMAKE_BUILD_TYPE MATCHES Debug) + set(TWN_SANITIZE ON) +endif() + set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(TWN_TARGET townengine CACHE INTERNAL "")