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