cmake: Set C11 standard

This commit is contained in:
Jakob Bornecrantz 2022-12-21 21:08:25 +00:00
parent 374a256d59
commit 8338599571

View file

@ -30,6 +30,10 @@ if(NOT WIN32)
)
endif()
# We use C11
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)
# We use C++17
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)