3
0
mirror of https://github.com/triqs/dft_tools synced 2024-06-29 16:34:53 +02:00

[cmake] ASAN / UBSAN should note be exported

This commit is contained in:
Nils Wentzell 2020-05-01 14:28:19 -04:00
parent c06d4b79a5
commit 0394f7fae2

View File

@ -70,13 +70,11 @@ if(ASAN)
if(NOT TARGET asan)
find_package(sanitizer REQUIRED "asan")
endif()
target_link_libraries(app4triqs_c PUBLIC asan)
install(TARGETS asan EXPORT app4triqs-targets)
target_link_libraries(app4triqs_c PUBLIC $<BUILD_INTERFACE:asan>)
endif()
if(UBSAN)
if(NOT TARGET ubsan)
find_package(sanitizer REQUIRED "ubsan")
endif()
target_link_libraries(app4triqs_c PUBLIC ubsan)
install(TARGETS ubsan EXPORT app4triqs-targets)
target_link_libraries(app4triqs_c PUBLIC $<BUILD_INTERFACE:ubsan>)
endif()