From f6d9696bf16b693c5e22437a7bcf0b8570a0095c Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Wed, 1 May 2024 15:33:16 -0700 Subject: [PATCH] bifcl: Require C++20 for builds --- tools/bifcl/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/bifcl/CMakeLists.txt b/tools/bifcl/CMakeLists.txt index cc5f24d051..e422a962d1 100644 --- a/tools/bifcl/CMakeLists.txt +++ b/tools/bifcl/CMakeLists.txt @@ -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