Skip to content

Commit 198cea9

Browse files
committed
Set C++ standard to 23 unconditionally
Removed conditional logic for setting the C++ standard based on compiler and platform. The code now consistently enforces C++23 as the standard across all configurations for clarity and uniformity.
1 parent dc93e46 commit 198cea9

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

cmake/configure.cmake

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/arch" )
2222
set( CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" )
2323
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" )
2424

25-
if ( MSVC AND (CMAKE_C_COMPILER_ID STREQUAL "Clang") AND (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
26-
set( CMAKE_CXX_STANDARD 20 )
27-
else ()
28-
set( CMAKE_CXX_STANDARD 23 )
29-
endif ()
25+
set( CMAKE_CXX_STANDARD 23 )
26+
3027
set(CMAKE_CXX_STANDARD_REQUIRED ON)
3128

3229
set(CMAKE_COMPILE_WARNING_AS_ERROR ON)

0 commit comments

Comments
 (0)