File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -176,12 +176,3 @@ endif()
176
176
CONFIGURE_FILE (
177
177
${CMAKE_CURRENT_SOURCE_DIR} /config.h.in
178
178
${CMAKE_CURRENT_BINARY_DIR} /config.h )
179
-
180
- if (CMARK_LIB_FUZZER )
181
- add_executable (cmark-fuzz ../test/cmark-fuzz.c ${LIBRARY_SOURCES} )
182
- target_link_libraries (cmark-fuzz "${CMAKE_LIB_FUZZER_PATH} " )
183
- # cmark is written in C but the libFuzzer runtime is written in C++ which
184
- # needs to link against the C++ runtime.
185
- set_target_properties (cmark-fuzz PROPERTIES
186
- LINKER_LANGUAGE CXX )
187
- endif ()
Original file line number Diff line number Diff line change @@ -92,3 +92,15 @@ else(Python3_Interpreter_FOUND)
92
92
message (WARNING "A python 3 interpreter is required to run the spec tests" )
93
93
94
94
endif (Python3_Interpreter_FOUND )
95
+
96
+
97
+ if (CMARK_LIB_FUZZER )
98
+ add_executable (cmark-fuzz cmark-fuzz.c )
99
+ target_link_libraries (cmark-fuzz PRIVATE
100
+ libcmark-gfm_static
101
+ "${CMAKE_LIB_FUZZER_PATH} " )
102
+ # cmark is written in C but the libFuzzer runtime is written in C++ which
103
+ # needs to link against the C++ runtime.
104
+ set_target_properties (cmark-fuzz PROPERTIES
105
+ LINKER_LANGUAGE CXX )
106
+ endif ()
You can’t perform that action at this time.
0 commit comments