summaryrefslogtreecommitdiffstats
path: root/testfiles/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'testfiles/CMakeLists.txt')
-rw-r--r--testfiles/CMakeLists.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/testfiles/CMakeLists.txt b/testfiles/CMakeLists.txt
index 5dba0258b..923898fc3 100644
--- a/testfiles/CMakeLists.txt
+++ b/testfiles/CMakeLists.txt
@@ -34,8 +34,9 @@ add_subdirectory(rendering_tests)
if(WITH_FUZZ)
add_executable(fuzz fuzzer.cpp)
- target_link_libraries(fuzz inkscape_base -lFuzzer "-fsanitize=address"
- "-fsanitize-coverage=edge,trace-pc-guard,indirect-calls,trace-cmp,trace-div,trace-gep"
- "-fno-omit-frame-pointer")
-
+ if(EXISTS ${LIB_FUZZING_ENGINE})
+ target_link_libraries(fuzz inkscape_base -lFuzzingEngine)
+ else()
+ target_link_libraries(fuzz inkscape_base -lFuzzer)
+ endif()
endif()