binpac: Require C++20 for builds

This commit is contained in:
Tim Wojtulewicz 2024-05-01 15:32:37 -07:00
parent bb382fc0c0
commit b9b4fcb78b
3 changed files with 5 additions and 7 deletions

View file

@ -99,9 +99,9 @@ set(binpac_SRCS
pac_varfield.h
pac_withinput.h)
include(${PROJECT_SOURCE_DIR}/cmake/RequireCXXStd.cmake)
add_executable(binpac ${binpac_SRCS})
target_compile_features(binpac PRIVATE cxx_std_17)
set_target_properties(binpac PROPERTIES CXX_EXTENSIONS OFF)
if (MSVC)
# If building separately from zeek, we need to add the libunistd subdirectory