summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2025-05-06 19:45:03 +0800
committerGitHub <noreply@github.com>2025-05-06 19:45:03 +0800
commit91425ccb6ff0a416b67ef21eb3ecebb49ba3e748 (patch)
treed4823b8bb2c68faaef38e48693432603eaa59068 /cmake
parent480369a302b15749aafc82feb001fa23db8edbd6 (diff)
Update C++ standard to C++20 (#6980)
* Correct incorrect enum usage on metal * Update C++ standard to C++20 Closes https://github.com/shader-slang/slang/issues/6945 * use bit_cast
Diffstat (limited to 'cmake')
-rw-r--r--cmake/CompilerFlags.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/CompilerFlags.cmake b/cmake/CompilerFlags.cmake
index 24a2c574f..2019b554b 100644
--- a/cmake/CompilerFlags.cmake
+++ b/cmake/CompilerFlags.cmake
@@ -175,7 +175,7 @@ function(set_default_compile_options target)
ON
# C++ standard
CXX_STANDARD
- 17
+ 20
# pic
POSITION_INDEPENDENT_CODE
ON