From 5f79b9ce8cec0b82b4a188804887763f327ce44b Mon Sep 17 00:00:00 2001 From: jacob Date: Wed, 3 Apr 2024 02:36:05 -0500 Subject: [PATCH] fix asan crtlib check in cmakelists --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 338eac40..0eaa463b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -205,14 +205,14 @@ endif() # ASAN if (ASAN) + if (NOT CRTLIB) + message(FATAL_ERROR "CRTLIB (C runtime library) Must be enabled when compiling with ASAN") + endif() set(COMPILER_FLAGS "${COMPILER_FLAGS} -fsanitize=address -DASAN=1") endif() # Developer mode if(DEVELOPER) - if (NOT CRTLIB) - message(FATAL_ERROR "CRTLIB (C runtime library) Must be enabled when compiling with ASAN") - endif() set(COMPILER_FLAGS "${COMPILER_FLAGS} -DDEVELOPER=1") endif()