1
0
Fork 0

Add a CMake message when ASan is enabled

This commit is contained in:
James Turner 2021-02-20 19:57:56 +00:00
parent dd60a041b1
commit 67d235a17e

View file

@ -397,6 +397,7 @@ endif()
# ASan is enabled in SimGear's configuration, in case you are
# wondering why there is no option() for it above.
if (ENABLE_ASAN)
message(STATUS "ASan enabled in SimGear, using for FlightGear as well")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=address")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fsanitize=address")