Skip to content

Commit 71e0148

Browse files
committed
CMake: Link simdjson-fuzzer to simdjson-source as before
simdjson target adds extra definitions which MSVC doesn't like
1 parent 293c104 commit 71e0148

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fuzz/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ if(ENABLE_FUZZING)
3434

3535
# Fuzzer build flags and libraries
3636
add_library(simdjson-fuzzer INTERFACE)
37-
target_link_libraries(simdjson-fuzzer INTERFACE simdjson)
3837
if (SIMDJSON_FUZZ_LINKMAIN)
38+
target_link_libraries(simdjson-fuzzer INTERFACE simdjson-source)
3939
target_sources(simdjson-fuzzer INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>/main.cpp)
40+
else ()
41+
target_link_libraries(simdjson-fuzzer INTERFACE simdjson)
4042
endif ()
43+
target_link_libraries(simdjson-fuzzer INTERFACE simdjson-flags simdjson-private-flags)
4144
target_link_libraries(simdjson-fuzzer INTERFACE ${SIMDJSON_FUZZ_LDFLAGS})
4245

4346
# Define the fuzzers

0 commit comments

Comments
 (0)