Skip to content

Commit c80d019

Browse files
umireonRytoEX
authored andcommitted
cmake: Use C17 only with CMake 3.21 or above
1 parent 57cdde9 commit c80d019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/common/compiler_common.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
include_guard(GLOBAL)
44

55
# Set C and C++ language standards to C17 and C++17
6-
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.17)
6+
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.21)
77
set(CMAKE_C_STANDARD 17)
88
else()
99
set(CMAKE_C_STANDARD 11)

0 commit comments

Comments
 (0)