fix asan crtlib check in cmakelists

This commit is contained in:
jacob 2024-04-03 02:36:05 -05:00
parent 59239ce13f
commit 5f79b9ce8c

View File

@ -205,14 +205,14 @@ endif()
# ASAN # ASAN
if (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") set(COMPILER_FLAGS "${COMPILER_FLAGS} -fsanitize=address -DASAN=1")
endif() endif()
# Developer mode # Developer mode
if(DEVELOPER) 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") set(COMPILER_FLAGS "${COMPILER_FLAGS} -DDEVELOPER=1")
endif() endif()