[CMAKE] Use CMake 3.17 default policies. CORE-17109

This commit is contained in:
Thomas Faber 2020-06-06 23:00:02 +02:00
parent add677e45b
commit a3a1d8f421
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View 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