[CMAKE] Use CMake 3.17 default policies. CORE-17109
authorThomas Faber <thomas.faber@reactos.org>
Sat, 6 Jun 2020 21:00:02 +0000 (23:00 +0200)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 20 Jun 2020 13:25:28 +0000 (15:25 +0200)
CMakeLists.txt

index 25ddb7f..c7f842d 100644 (file)
@@ -1,21 +1,10 @@
 
 cmake_minimum_required(VERSION 3.17.0)
-cmake_policy(VERSION 3.2.1)
 
 if(NOT CMAKE_VERSION MATCHES "ReactOS")
     message(WARNING "Building with \"${CMAKE_COMMAND}\", which is not the custom CMake included in RosBE, might cause build issues...")
 endif()
 
-if(POLICY CMP0058)
-    # Ninja requires custom command byproducts to be explicit
-    cmake_policy(SET CMP0058 NEW)
-endif()
-
-if(POLICY CMP0065)
-    # Do not add flags to export symbols from executables without the ENABLE_EXPORTS target property
-    cmake_policy(SET CMP0065 NEW)
-endif()
-
 project(REACTOS)
 
 # Versioning