Lagom: Fix oss-fuzz build error due to CMake typo

The OSS-Fuzz build was failing with the following error:

 /usr/bin/ld: cannot find -l{}
This commit is contained in:
Brian Gianforcaro 2021-07-30 12:24:27 -07:00 committed by Linus Groh
parent 4d0f849654
commit a4dc1eb330
Notes: sideshowbarker 2024-07-18 07:44:15 +09:00

View file

@ -3,7 +3,7 @@ function(add_simple_fuzzer name)
if (ENABLE_OSS_FUZZ)
target_link_libraries(${name}
PUBLIC {$ARGN} LagomCore)
PUBLIC ${ARGN} LagomCore)
else()
target_compile_options(${name}
PRIVATE $<$<CXX_COMPILER_ID:Clang>:-g -O1 -fsanitize=fuzzer>