From 1d8717f956044b7745a3c5e62ec28f8fcb4cfae0 Mon Sep 17 00:00:00 2001 From: faywong Date: Sun, 29 Sep 2024 15:57:59 +0800 Subject: [PATCH] add c++11 requirement to ease the building on MacOS --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c6c8639..9d88ef86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,10 @@ endif( ) # Define a single cmake project project(kenlm) +set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) + option(FORCE_STATIC "Build static executables" OFF) option(COMPILE_TESTS "Compile tests" OFF) option(ENABLE_PYTHON "Build Python bindings" OFF)