summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt11
-rw-r--r--cmake/FindICU.cmake5
-rw-r--r--src/settingsgen/CMakeLists.txt2
-rw-r--r--src/strgen/CMakeLists.txt2
4 files changed, 10 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index be544316d..8fbf3507d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.5)
+cmake_minimum_required(VERSION 3.9)
if(NOT BINARY_NAME)
set(BINARY_NAME openttd)
@@ -143,13 +143,8 @@ find_package(Xaudio2)
find_package(Grfcodec)
-# IPO is only properly supported from CMake 3.9. Despite the fact we are
-# CMake 3.5, still enable IPO if we detect we are 3.9+.
-if(POLICY CMP0069)
- cmake_policy(SET CMP0069 NEW)
- include(CheckIPOSupported)
- check_ipo_supported(RESULT IPO_FOUND)
-endif()
+include(CheckIPOSupported)
+check_ipo_supported(RESULT IPO_FOUND)
show_options()
diff --git a/cmake/FindICU.cmake b/cmake/FindICU.cmake
index b110dbf40..d12f36b0a 100644
--- a/cmake/FindICU.cmake
+++ b/cmake/FindICU.cmake
@@ -1,3 +1,8 @@
+# CMake provides a FindICU module since version 3.7.
+# But it doesn't use pkgconfig, doesn't set expected variables,
+# And it returns incomplete dependencies if only some modules are searched.
+
+
#[=======================================================================[.rst:
FindICU
-------
diff --git a/src/settingsgen/CMakeLists.txt b/src/settingsgen/CMakeLists.txt
index 69b209201..43d5284e6 100644
--- a/src/settingsgen/CMakeLists.txt
+++ b/src/settingsgen/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.5)
+cmake_minimum_required(VERSION 3.9)
if (NOT HOST_BINARY_DIR)
project(settingsgen)
diff --git a/src/strgen/CMakeLists.txt b/src/strgen/CMakeLists.txt
index 08c122335..490f675f2 100644
--- a/src/strgen/CMakeLists.txt
+++ b/src/strgen/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.5)
+cmake_minimum_required(VERSION 3.9)
if (NOT HOST_BINARY_DIR)
project(strgen)