Fix naming of fuzzers

This commit is contained in:
Victor Zverovich 2020-10-12 16:48:25 -07:00
parent 2f448ed565
commit 63e40c9614

View File

@ -11,7 +11,7 @@ set(FMT_FUZZ_LDFLAGS "" CACHE STRING "LDFLAGS for the fuzz targets")
function(add_fuzzer source) function(add_fuzzer source)
get_filename_component(basename ${source} NAME_WE) get_filename_component(basename ${source} NAME_WE)
set(name fuzzer_${basename}) set(name ${basename}-fuzzer)
add_executable(${name} ${source} fuzzer-common.h) add_executable(${name} ${source} fuzzer-common.h)
if (FMT_FUZZ_LINKMAIN) if (FMT_FUZZ_LINKMAIN)
target_sources(${name} PRIVATE main.cc) target_sources(${name} PRIVATE main.cc)