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()