[CMAKE] Declare that we want to use C11/C++11

That way, we won't use whatever standard is the default on whatever compiler we are using.
This should also prevent using more recent features without warning.
This commit is contained in:
Hervé Poussineau 2020-12-01 18:48:36 +01:00
parent 4469ab3620
commit 64211aa696

View file

@ -17,6 +17,8 @@ set(CMAKE_SKIP_PREPROCESSED_SOURCE_RULES TRUE)
set(CMAKE_SKIP_ASSEMBLY_SOURCE_RULES TRUE)
set(CMAKE_COLOR_MAKEFILE OFF)
set(CMAKE_POSITION_INDEPENDENT_CODE OFF)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 11)
#set_property(GLOBAL PROPERTY RULE_MESSAGES OFF)
if(NOT ARCH)