From: Sebastian Pipping Date: Wed, 28 Aug 2019 16:08:44 +0000 (+0200) Subject: CMake: Get off target_link_options of CMake >=3.13 X-Git-Tag: R_2_2_8~33^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b784c756700be866a65703217526494b108f86b3;p=libexpat CMake: Get off target_link_options of CMake >=3.13 --- diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt index 0a19d50b..0226a4dc 100644 --- a/expat/CMakeLists.txt +++ b/expat/CMakeLists.txt @@ -352,7 +352,8 @@ if(BUILD_fuzzers) target_compile_definitions(${target_name} PRIVATE ENCODING_FOR_FUZZING=${encoding_type}) target_compile_options(${target_name} PRIVATE -fsanitize=fuzzer-no-link) - target_link_options(${target_name} PRIVATE -fsanitize=fuzzer) + # NOTE: Avoiding target_link_options here only because it needs CMake >=3.13 + set_target_properties(${target_name} PROPERTIES LINK_FLAGS -fsanitize=fuzzer) set_property( TARGET ${target_name} PROPERTY RUNTIME_OUTPUT_DIRECTORY fuzz) endforeach()