From 1b1f3635d4c777adeaaf70f3047511e9f728f5b1 Mon Sep 17 00:00:00 2001 From: fuzzard Date: Wed, 19 Jun 2024 18:03:47 +1000 Subject: [cmake] Allow overriding CXX_STANDARD by using CACHE variable --- cmake/scripts/common/CompilerSettings.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake') diff --git a/cmake/scripts/common/CompilerSettings.cmake b/cmake/scripts/common/CompilerSettings.cmake index c4ea3231e1..d5dc875674 100644 --- a/cmake/scripts/common/CompilerSettings.cmake +++ b/cmake/scripts/common/CompilerSettings.cmake @@ -1,5 +1,5 @@ # Languages and global compiler settings -set(CMAKE_CXX_STANDARD 20) +set(CMAKE_CXX_STANDARD 20 CACHE STRING "CXX_STANDARD") set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_ASM_FLAGS "${CMAKE_C_FLAGS} -x assembler-with-cpp") -- cgit v1.2.3