diff --git a/src/sample_library/CMakeLists.txt b/src/sample_library/CMakeLists.txt index cfe2f2b..211e6fa 100644 --- a/src/sample_library/CMakeLists.txt +++ b/src/sample_library/CMakeLists.txt @@ -12,6 +12,11 @@ target_link_libraries(sample_library PRIVATE myproject_options myproject_warning target_include_directories(sample_library ${WARNING_GUARD} PUBLIC $ $) +if (myproject_BUILD_FUZZ_TESTS) + target_link_libraries(sample_library PRIVATE -fsanitize=fuzzer-no-link) + target_compile_options(sample_library PRIVATE -fsanitize=fuzzer-no-link) +endif() + target_compile_features(sample_library PUBLIC cxx_std_${CMAKE_CXX_STANDARD}) set_target_properties(