https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e4f067068c818ea916b64…
commit e4f067068c818ea916b648c15563d3891604df72
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Fri Mar 30 13:33:53 2018 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Thu Jun 14 22:34:09 2018 +0200
Set minimum required version to 3.2.1 and set appropriate policies.
#556
---
CMakeLists.txt | 28 ++++++++--------------------
1 file changed, 8 insertions(+), 20 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bd98d3ac47..489bdbb209 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,20 +1,15 @@
-cmake_minimum_required(VERSION 2.8.12)
+cmake_minimum_required(VERSION 3.2.1)
+cmake_policy(VERSION 3.2.1)
-if(POLICY CMP0017)
- # Shadow cmake provided modules
- cmake_policy(SET CMP0017 OLD)
-endif()
+# Don't escape preprocessor definition values added via add_definitions
+cmake_policy(SET CMP0005 OLD)
-if(POLICY CMP0026)
- # Allow use of the LOCATION property
- cmake_policy(SET CMP0026 NEW)
-endif()
+# Shadow cmake provided modules
+cmake_policy(SET CMP0017 OLD)
-if(POLICY CMP0051)
- # List TARGET_OBJECTS in SOURCES target property
- cmake_policy(SET CMP0051 NEW)
-endif()
+# Honor CMAKE_SHARED_LIBRARY_<Lang>_FLAGS variable.
+cmake_policy(SET CMP0018 OLD)
if(POLICY CMP0058)
# Ninja requires custom command byproducts to be explicit
@@ -26,13 +21,6 @@ project(REACTOS)
# Versioning
include(sdk/include/reactos/version.cmake)
-# Don't escape preprocessor definition values added via add_definitions
-cmake_policy(SET CMP0005 OLD)
-cmake_policy(SET CMP0002 NEW)
-if(POLICY CMP0018)
- cmake_policy(SET CMP0018 OLD)
-endif()
-
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
set(CMAKE_SHARED_LIBRARY_PREFIX "")