[F] Fixed clang build

This commit is contained in:
seleznevae 2018-04-01 16:05:58 +03:00
parent 1d8a3e34b4
commit 91ab04d9d7

View File

@ -114,9 +114,9 @@ if(FORT_COMPILER STREQUAL "GNU" OR FORT_COMPILER STREQUAL "Clang")
set(CMAKE_CPP_FLAGS "${CMAKE_CPP_FLAGS} -fsanitize=address")
if(FORT_COMPILER STREQUAL "GNU")
target_link_libraries(${PROJECT_NAME}_example asan)
target_link_libraries(${PROJECT_NAME}_example_cpp asan)
target_link_libraries(${PROJECT_NAME}_test asan)
endif(FORT_COMPILER STREQUAL "GNU")
target_link_libraries(${PROJECT_NAME}_example_cpp asan)
endif(FORT_BUILD_TYPE STREQUAL "asan")
#ubsan case