Use target_compile_features to specify C++ standard requirement

This commit is contained in:
Chris Thrasher authored and Victor Zverovich committed 2022-11-26 11:03:17 -08:00
1 parent fae6f7e081
commit 69ffedfe52
9 files changed
+16 -76

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ function(add_fuzzer source)
if (FMT_FUZZ_LDFLAGS)
target_link_libraries(${name} PRIVATE ${FMT_FUZZ_LDFLAGS})
endif ()
target_compile_features(${name} PRIVATE cxx_generic_lambdas)
target_compile_features(${name} PRIVATE cxx_std_14)
endfunction()
foreach (source chrono-duration.cc chrono-timepoint.cc float.cc named-arg.cc one-arg.cc two-args.cc)