fix asan crtlib check in cmakelists
This commit is contained in:
parent
59239ce13f
commit
5f79b9ce8c
@ -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()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user