From 6914103289125c4c909c1f17e53f9bdd02a66e62 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 31 Oct 2023 21:45:27 +0000 Subject: [PATCH] cmake: set asan for only hyprland not others --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 228e40c4..31a1646b 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -116,7 +116,7 @@ if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG) message(STATUS "Enabling ASan") target_link_libraries(Hyprland asan) - add_compile_options(-fsanitize=address) + target_compile_options(Hyprland PUBLIC -fsanitize=address) endif() if(USE_TRACY)