From a1451fbe0f1b3629981037145e7620c6909166ba Mon Sep 17 00:00:00 2001 From: "Pierre R. Mai" Date: Mon, 20 Nov 2023 11:39:30 +0100 Subject: [PATCH] Make CMAKE_CXX_STANDARD overridable (fix #741) Signed-off-by: Pierre R. Mai --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2893279be..8c9626321 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) endif() # Set the C++ standard -set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD 11 CACHE STRING "C++ standard to be used") set(CMAKE_CXX_STANDARD_REQUIRED ON) # Optional Flatbuffer support