Skip to content

Commit e01b19d

Browse files
committed
Set C++ standard as required in CMake configuration
Enabled `CMAKE_CXX_STANDARD_REQUIRED` to enforce the specified C++ standard. This ensures compatibility and prevents fallback to earlier standards during the build process.
1 parent 1ce11d2 commit e01b19d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/configure.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ if ( MSVC AND (CMAKE_C_COMPILER_ID STREQUAL "Clang") AND (CMAKE_CXX_COMPILER_ID
2727
else ()
2828
set( CMAKE_CXX_STANDARD 23 )
2929
endif ()
30+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
3031

3132
set(CMAKE_COMPILE_WARNING_AS_ERROR ON)
3233

0 commit comments

Comments
 (0)