Browse Source

Update CMake minimum to 3.5

Michael Ragazzon 1 year ago
parent
commit
b301702ed4
1 changed files with 4 additions and 1 deletions
  1. 4 1
      CMakeLists.txt

+ 4 - 1
CMakeLists.txt

@@ -2,7 +2,7 @@
 # Build script for RmlUi ===========
 # Build script for RmlUi ===========
 #===================================
 #===================================
 
 
-cmake_minimum_required(VERSION 3.1)
+cmake_minimum_required(VERSION 3.5)
 
 
 if(APPLE)
 if(APPLE)
 	# This has to be before most other options so CMake properly handles the
 	# This has to be before most other options so CMake properly handles the
@@ -52,6 +52,9 @@ endif(POLICY CMP0072)
 if(POLICY CMP0074)
 if(POLICY CMP0074)
 	cmake_policy(SET CMP0074 NEW)
 	cmake_policy(SET CMP0074 NEW)
 endif(POLICY CMP0074)
 endif(POLICY CMP0074)
+if(POLICY CMP0074)
+	cmake_policy(SET CMP0092 NEW)
+endif(POLICY CMP0074)
 
 
 project(RmlUi LANGUAGES C CXX VERSION 6.0)
 project(RmlUi LANGUAGES C CXX VERSION 6.0)