cmake: move cmake_minimum_required bump to extern/CMakeLists.txt

pull/3047/head
Gleb Mazovetskiy 4 years ago
parent 90766dcc82
commit 98564b0aae

@ -1,5 +1,5 @@
project(OpenMW)
cmake_minimum_required(VERSION 3.11) # CMP0083 NEW
cmake_minimum_required(VERSION 3.1.0) # CMP0083 NEW
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

@ -16,6 +16,8 @@ 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 "")
set(BUILD_OPENGL3_DEMOS OFF CACHE BOOL "")
@ -50,6 +52,8 @@ if(NOT OPENMW_USE_SYSTEM_BULLET)
endif()
if(NOT OPENMW_USE_SYSTEM_MYGUI)
cmake_minimum_required(VERSION 3.11) # for FetchContent
set(MYGUI_STATIC ON CACHE BOOL "")
set(MYGUI_RENDERSYSTEM 4 CACHE STRING "")
@ -71,6 +75,8 @@ if(NOT OPENMW_USE_SYSTEM_MYGUI)
endif()
if(NOT OPENMW_USE_SYSTEM_OSG)
cmake_minimum_required(VERSION 3.11) # for FetchContent
set(OSG_STATIC ON CACHE BOOL "")
set(DYNAMIC_OPENTHREADS OFF CACHE BOOL "")

Loading…
Cancel
Save