mirror of
https://github.com/triqs/dft_tools
synced 2024-12-23 04:43:42 +01:00
[cmake] ASAN / UBSAN should note be exported
This commit is contained in:
parent
c06d4b79a5
commit
0394f7fae2
@ -70,13 +70,11 @@ if(ASAN)
|
|||||||
if(NOT TARGET asan)
|
if(NOT TARGET asan)
|
||||||
find_package(sanitizer REQUIRED "asan")
|
find_package(sanitizer REQUIRED "asan")
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries(app4triqs_c PUBLIC asan)
|
target_link_libraries(app4triqs_c PUBLIC $<BUILD_INTERFACE:asan>)
|
||||||
install(TARGETS asan EXPORT app4triqs-targets)
|
|
||||||
endif()
|
endif()
|
||||||
if(UBSAN)
|
if(UBSAN)
|
||||||
if(NOT TARGET ubsan)
|
if(NOT TARGET ubsan)
|
||||||
find_package(sanitizer REQUIRED "ubsan")
|
find_package(sanitizer REQUIRED "ubsan")
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries(app4triqs_c PUBLIC ubsan)
|
target_link_libraries(app4triqs_c PUBLIC $<BUILD_INTERFACE:ubsan>)
|
||||||
install(TARGETS ubsan EXPORT app4triqs-targets)
|
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user