Skip to content

Commit 4cb443e

Browse files
authored
Merge pull request #457 from faywong/patch-1
add c++11 requirement to ease the building on MacOS
2 parents ba83eaf + 1d8717f commit 4cb443e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ endif( )
1313
# Define a single cmake project
1414
project(kenlm)
1515

16+
set(CMAKE_CXX_STANDARD 11)
17+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
18+
set(CMAKE_CXX_EXTENSIONS OFF)
19+
1620
option(FORCE_STATIC "Build static executables" OFF)
1721
option(COMPILE_TESTS "Compile tests" OFF)
1822
option(ENABLE_PYTHON "Build Python bindings" OFF)

0 commit comments

Comments
 (0)