File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0.0)
2
+ hunter_add_package(RapidJSON)
3
+ find_package (RapidJSON CONFIG REQUIRED)
4
+ set_target_properties (RapidJSON::rapidjson PROPERTIES INTERFACE_COMPILE_DEFINITIONS "RAPIDJSON_HAS_STDSTRING=1" )
5
+
2
6
add_executable (ddappsec_helper_fuzzer ${HELPER_SOURCE} main.cpp mutators.cpp)
3
7
set_target_properties (ddappsec_helper_fuzzer PROPERTIES COMPILE_FLAGS "-fsanitize=fuzzer-no-link,address,leak -fprofile-instr-generate -fcoverage-mapping" )
4
8
set_target_properties (ddappsec_helper_fuzzer PROPERTIES LINK_FLAGS "-fsanitize=fuzzer-no-link,address,leak -fprofile-instr-generate -fcoverage-mapping" )
@@ -14,7 +18,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSIO
14
18
target_compile_definitions (ddappsec_helper_fuzzer PUBLIC ZLIB_CONST=1)
15
19
target_link_directories (ddappsec_helper_fuzzer PRIVATE ${LLVM_RUNTIME_DIR} )
16
20
target_link_libraries (ddappsec_helper_fuzzer
17
- PRIVATE libddwaf_objects pthread spdlog cpp-base64 msgpack_c lib_rapidjson Boost::system libclang_rt.fuzzer_no_main-${ARCHITECTURE} .a zlibstatic)
21
+ PRIVATE libddwaf_objects pthread spdlog cpp-base64 msgpack_c RapidJSON::rapidjson Boost::system libclang_rt.fuzzer_no_main-${ARCHITECTURE} .a zlibstatic)
18
22
19
23
add_executable (corpus_generator corpus_generator.cpp)
20
24
target_link_libraries (corpus_generator PRIVATE helper_objects libddwaf_objects pthread spdlog)
You can’t perform that action at this time.
0 commit comments