From b4b9e0ebef93dc401c7862a42e6bad7d0ecd1610 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Thu, 26 Sep 2024 21:44:31 +0300 Subject: [PATCH] sanitize on debug by default --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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 "")