mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-02 07:59:50 -04:00
cmake min 3.9 -> 3.13 so LINK_LIBRARIES available in try_compile()
cmake: hardcode -fsanitize=address for MSVC 2019 cmake: non-MSVC simplify setting sanitize address, undefined test_code128: test_hibc_input: extra tests
This commit is contained in:
parent
ef6e1ca1e3
commit
141cc0b866
5 changed files with 32 additions and 29 deletions
|
@ -19,15 +19,6 @@ if(ZINT_STATIC)
|
|||
add_library(zint-static STATIC ${zint_SRCS})
|
||||
endif()
|
||||
|
||||
if(SANITIZER_FLAGS)
|
||||
target_compile_options(zint PUBLIC ${SANITIZER_FLAGS})
|
||||
target_link_options(zint PUBLIC ${SANITIZER_FLAGS})
|
||||
if(ZINT_STATIC)
|
||||
target_compile_options(zint-static PUBLIC ${SANITIZER_FLAGS})
|
||||
target_link_options(zint-static PUBLIC ${SANITIZER_FLAGS})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
function(zint_target_link_libraries library)
|
||||
target_link_libraries(zint ${library})
|
||||
if(ZINT_STATIC)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue