Skip to content

Commit 08909b5

Browse files
committed
cmake: also handle an undefined CTRE C++ standard request
1 parent e92b477 commit 08909b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ if(CTRE_MODULE)
9292
)
9393

9494
# we are using `import std;`
95-
if (CTRE_CXX_STANDARD LESS 23)
95+
if (NOT DEFINED CTRE_CXX_STANDARD OR CTRE_CXX_STANDARD LESS 23)
9696
set(CTRE_CXX_STANDARD 23)
9797
endif()
9898

0 commit comments

Comments
 (0)