Skip to content

Commit 0c4b3d4

Browse files
committed
Make CMAKE_CXX_STANDARD default to 23 if not already specified
per Brad's suggestion.
1 parent 9f1f1c7 commit 0c4b3d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

indra/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ else()
2929
set( USE_AUTOBUILD_3P ON )
3030
endif()
3131

32-
set(CMAKE_CXX_STANDARD 23)
32+
if (NOT DEFINED CMAKE_CXX_STANDARD)
33+
set(CMAKE_CXX_STANDARD 23)
34+
endif()
3335
set(CMAKE_CXX_STANDARD_REQUIRED ON)
3436

3537
include(Variables)

0 commit comments

Comments
 (0)