From b784c756700be866a65703217526494b108f86b3 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 28 Aug 2019 18:08:44 +0200 Subject: [PATCH] CMake: Get off target_link_options of CMake >=3.13 --- expat/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.40.0