binpac: Force -std=c++17 mode for cmake targets, remove use of RequireCXX17.cmake

This commit is contained in:
Tim Wojtulewicz 2023-06-15 11:45:13 -07:00
parent b7cc5afa78
commit 874de5d25b
2 changed files with 8 additions and 2 deletions

View file

@ -8,7 +8,6 @@ if (MSVC)
else()
set_property(SOURCE pac_scan.cc APPEND_STRING PROPERTY COMPILE_FLAGS "-Wno-sign-compare")
endif()
include(RequireCXX17)
include_directories(${PROJECT_SOURCE_DIR}/src
${PROJECT_BINARY_DIR}/src)
@ -103,6 +102,8 @@ set(binpac_SRCS
)
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 so