From 94cc9240eabf78cbbc9006cb70ca74b6bc3f54e6 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 26 Jul 2026 19:59:56 +0200 Subject: readme + cmake upgrades --- CMakeLists.txt | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index ec93cc0..a970f50 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,10 +26,13 @@ else() ) endif() -target_compile_options(${PROJECT_NAME} PRIVATE - -fsanitize=address,undefined -) +if (NOT MSVC AND CMAKE_BUILD_TYPE STREQUAL "Debug") + target_compile_options(${PROJECT_NAME} PRIVATE + -fsanitize=address,undefined + -fno-omit-frame-pointer + ) -target_link_options(${PROJECT_NAME} PRIVATE - -fsanitize=address,undefined -) + target_link_options(${PROJECT_NAME} PRIVATE + -fsanitize=address,undefined + ) +endif() -- cgit v1.2.3