mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 18:15:35 +00:00
Bump required CMake version to 3.16
This commit is contained in:
parent
bb8ac466d1
commit
c59904062f
2 changed files with 2 additions and 26 deletions
|
@ -1,26 +1,7 @@
|
|||
cmake_minimum_required(VERSION 3.1.0)
|
||||
|
||||
# for link time optimization, remove if cmake version is >= 3.9
|
||||
if(POLICY CMP0069) # LTO
|
||||
cmake_policy(SET CMP0069 NEW)
|
||||
endif()
|
||||
|
||||
# for position-independent executable, remove if cmake version is >= 3.14
|
||||
if(POLICY CMP0083)
|
||||
cmake_policy(SET CMP0083 NEW)
|
||||
endif()
|
||||
|
||||
# to link with freetype library
|
||||
if(POLICY CMP0079)
|
||||
cmake_policy(SET CMP0079 NEW)
|
||||
endif()
|
||||
|
||||
# don't add /W3 flag by default for MSVC
|
||||
if(POLICY CMP0092)
|
||||
cmake_policy(SET CMP0092 NEW)
|
||||
endif()
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
# set the timestamps of extracted contents to the time of extraction
|
||||
# remove if cmake version is >= 3.24
|
||||
if(POLICY CMP0135)
|
||||
cmake_policy(SET CMP0135 NEW)
|
||||
endif()
|
||||
|
|
5
extern/CMakeLists.txt
vendored
5
extern/CMakeLists.txt
vendored
|
@ -18,7 +18,6 @@ macro(FetchContent_MakeAvailableExcludeFromAll)
|
|||
endmacro()
|
||||
|
||||
if(NOT OPENMW_USE_SYSTEM_BULLET)
|
||||
cmake_minimum_required(VERSION 3.11) # for FetchContent
|
||||
|
||||
set(BUILD_BULLET3 OFF CACHE BOOL "")
|
||||
set(BUILD_EXTRAS OFF CACHE BOOL "")
|
||||
|
@ -63,7 +62,6 @@ if(NOT OPENMW_USE_SYSTEM_BULLET)
|
|||
endif()
|
||||
|
||||
if(NOT OPENMW_USE_SYSTEM_MYGUI)
|
||||
cmake_minimum_required(VERSION 3.11) # for FetchContent
|
||||
|
||||
set(MYGUI_RENDERSYSTEM 4 CACHE STRING "")
|
||||
set(MYGUI_DISABLE_PLUGINS TRUE CACHE BOOL "")
|
||||
|
@ -95,7 +93,6 @@ if(NOT OPENMW_USE_SYSTEM_MYGUI)
|
|||
endif()
|
||||
|
||||
if(NOT OPENMW_USE_SYSTEM_OSG)
|
||||
cmake_minimum_required(VERSION 3.11) # for FetchContent
|
||||
|
||||
set(BUILD_OSG_APPLICATIONS OFF CACHE BOOL "")
|
||||
set(BUILD_OSG_DEPRECATED_SERIALIZERS OFF CACHE BOOL "")
|
||||
|
@ -213,7 +210,6 @@ endif()
|
|||
add_subdirectory(smhasher)
|
||||
|
||||
if (BUILD_BENCHMARKS AND NOT OPENMW_USE_SYSTEM_BENCHMARK)
|
||||
cmake_minimum_required(VERSION 3.11)
|
||||
|
||||
set(BENCHMARK_ENABLE_TESTING OFF)
|
||||
set(BENCHMARK_ENABLE_INSTALL OFF)
|
||||
|
@ -304,7 +300,6 @@ if (NOT OPENMW_USE_SYSTEM_ICU)
|
|||
endif()
|
||||
|
||||
if ((BUILD_UNITTESTS OR BUILD_OPENCS_TESTS) AND NOT OPENMW_USE_SYSTEM_GOOGLETEST)
|
||||
cmake_minimum_required(VERSION 3.11)
|
||||
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(googletest
|
||||
|
|
Loading…
Reference in a new issue