mirror of
https://github.com/mhx/dwarfs.git
synced 2025-08-03 17:56:12 -04:00
build: ensure fuzzing binaries can be built without warnings
This commit is contained in:
parent
bfadb40615
commit
6424c6ff85
@ -715,6 +715,13 @@ foreach(tgt ${LIBDWARFS_TARGETS} ${LIBDWARFS_OBJECT_TARGETS} dwarfs_test_helpers
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(${tgt} MATCHES "fuzz_")
|
||||
target_compile_options(${tgt} PRIVATE
|
||||
-Wno-gnu-statement-expression-from-macro-expansion
|
||||
-Wno-old-style-cast
|
||||
)
|
||||
endif()
|
||||
|
||||
set_property(TARGET ${tgt} PROPERTY CXX_STANDARD 20)
|
||||
set_property(TARGET ${tgt} PROPERTY CXX_STANDARD_REQUIRED ON)
|
||||
set_property(TARGET ${tgt} PROPERTY CXX_EXTENSIONS OFF)
|
||||
|
Loading…
x
Reference in New Issue
Block a user