Bugfix in FindASan.cmake

This commit is contained in:
Alexander Haase 2016-02-15 05:13:36 +01:00
parent d81be39678
commit c96a15b46c

View File

@ -130,7 +130,7 @@ function (sanitize_address TARGET)
string(SUBSTRING "${FILE_EXT}" 1 -1 FILE_EXT)
list(FIND CMAKE_${LANG}_SOURCE_FILE_EXTENSIONS "${FILE_EXT}" TEMP)
if (NOT ${TEMP} EQUAL -1)
if (DEFINED ASAN_${LANG}_FLAGS})
if (DEFINED ASAN_${LANG}_FLAGS)
set_property(SOURCE ${SOURCE_FILE} APPEND_STRING PROPERTY
COMPILE_FLAGS " ${ASAN_${LANG}_FLAGS}")
endif ()