aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2024-06-19 18:03:47 +1000
committerfuzzard <fuzzard@kodi.tv>2024-07-16 17:12:19 +1000
commit1b1f3635d4c777adeaaf70f3047511e9f728f5b1 (patch)
tree80b35d020b3403c254631c7bae7ffe9204f65cf4 /cmake
parenta1d942b950b3226499d971dc12c9b782a2ce1454 (diff)
[cmake] Allow overriding CXX_STANDARD by using CACHE variable
Diffstat (limited to 'cmake')
-rw-r--r--cmake/scripts/common/CompilerSettings.cmake2
1 files changed, 1 insertions, 1 deletions
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")