bifcl: Require C++20 for builds

This commit is contained in:
Tim Wojtulewicz 2024-05-01 15:33:16 -07:00
parent d8d8772342
commit f6d9696bf1

View file

@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.15.0 FATAL_ERROR)
project(BifCl C CXX)
include(cmake/CommonCMakeConfig.cmake)
include(cmake/RequireCXXStd.cmake)
find_package(BISON REQUIRED)
find_package(FLEX REQUIRED)
@ -34,8 +35,6 @@ set(bifcl_SRCS
include/module_util.h)
add_executable(bifcl ${bifcl_SRCS})
target_compile_features(bifcl PRIVATE cxx_std_17)
set_target_properties(bifcl PROPERTIES CXX_EXTENSIONS OFF)
if (MSVC)
# If building separately from zeek, we need to add the libunistd subdirectory