Revert C++ version back to 20 due to a bug in Clang17

https://github.com/llvm/llvm-project/issues/61415
This commit is contained in:
Alexander Bock
2025-03-03 22:48:50 +01:00
parent b9910befcf
commit 80dcc0db3a
4 changed files with 6 additions and 4 deletions

View File

@@ -23,7 +23,9 @@
##########################################################################################
function (set_openspace_compile_settings target)
target_compile_features(${target} PUBLIC cxx_std_23)
# Switching to cxx_std_23 triggers a bug in Clang17
# https://github.com/llvm/llvm-project/issues/61415
target_compile_features(${target} PUBLIC cxx_std_20)
set(MSVC_WARNINGS
"/MP" # Multi-threading support