mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-25 00:43:39 +08:00
Merge branch 'cmake4' of github.com:cjmayo/wxWidgets
Improve CMake 4 compatibility. See #25781.
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
#############################################################################
|
||||
|
||||
include(CMakeDependentOption)
|
||||
include(CMakeParseArguments) # For compatibility with CMake < 3.4
|
||||
include(ExternalProject)
|
||||
include(CMakePrintHelpers)
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ set(__COTIRE_INCLUDED TRUE)
|
||||
if (NOT CMAKE_SCRIPT_MODE_FILE)
|
||||
cmake_policy(PUSH)
|
||||
endif()
|
||||
cmake_minimum_required(VERSION 2.8.12)
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
if (NOT CMAKE_SCRIPT_MODE_FILE)
|
||||
cmake_policy(POP)
|
||||
endif()
|
||||
@@ -111,7 +111,6 @@ if (POLICY CMP0055)
|
||||
cmake_policy(SET CMP0055 NEW)
|
||||
endif()
|
||||
|
||||
include(CMakeParseArguments)
|
||||
include(ProcessorCount)
|
||||
|
||||
function (cotire_get_configuration_types _configsVar)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# cotire example project
|
||||
|
||||
cmake_minimum_required(VERSION 2.8.12)
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
if (POLICY CMP0058)
|
||||
# Ninja requires custom command byproducts to be explicit
|
||||
@@ -10,11 +10,8 @@ endif()
|
||||
project (CotireExample)
|
||||
|
||||
set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/..")
|
||||
|
||||
if (NOT CMAKE_VERSION VERSION_LESS "3.1.0")
|
||||
set (CMAKE_CXX_STANDARD "98")
|
||||
set (CMAKE_CXX_EXTENSIONS OFF)
|
||||
endif()
|
||||
set (CMAKE_CXX_STANDARD "98")
|
||||
set (CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
||||
include(cotire)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user