https://git.reactos.org/?p=reactos.git;a=commitdiff;h=64211aa6964a8ca1627f2…
commit 64211aa6964a8ca1627f2ce7244b8270003e6770
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Tue Dec 1 18:48:36 2020 +0100
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Tue Dec 1 18:51:42 2020 +0100
[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.
---
CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e3dff10c6c1..3e60e3fae3e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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)