Skip to content

Commit

Permalink
C17 is only supported CMake 3.21+ (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
umireon authored Aug 27, 2023
1 parent 4b9a7ee commit 053edd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/common/compiler_common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
include_guard(GLOBAL)

# Set C and C++ language standards to C17 and C++17
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.17)
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.21)
set(CMAKE_C_STANDARD 17)
else()
set(CMAKE_C_STANDARD 11)
Expand Down

0 comments on commit 053edd0

Please sign in to comment.