1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

Configure CMake itself with policies through CMake 4.0

This commit is contained in:
Brad King
2025-07-02 09:42:26 -04:00
parent f7380d8c4a
commit 8071304f2e
4 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file LICENSE.rst or https://cmake.org/licensing for details.
cmake_minimum_required(VERSION 3.13...3.31 FATAL_ERROR)
cmake_minimum_required(VERSION 3.13...4.0 FATAL_ERROR)
set(CMAKE_USER_MAKE_RULES_OVERRIDE_C ${CMAKE_CURRENT_SOURCE_DIR}/Source/Modules/OverrideC.cmake)
set(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX ${CMAKE_CURRENT_SOURCE_DIR}/Source/Modules/OverrideCXX.cmake)

View File

@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.13...3.31 FATAL_ERROR)
cmake_minimum_required(VERSION 3.13...4.0 FATAL_ERROR)
project(CheckCurses C)
set(CURSES_NEED_NCURSES TRUE)

View File

@@ -3,7 +3,7 @@
if(NOT CMake_SOURCE_DIR)
set(CMakeDeveloperReference_STANDALONE 1)
cmake_minimum_required(VERSION 3.13...3.31 FATAL_ERROR)
cmake_minimum_required(VERSION 3.13...4.0 FATAL_ERROR)
get_filename_component(tmp "${CMAKE_CURRENT_SOURCE_DIR}" PATH)
get_filename_component(CMake_SOURCE_DIR "${tmp}" PATH)
include(${CMake_SOURCE_DIR}/Modules/CTestUseLaunchers.cmake)

View File

@@ -3,7 +3,7 @@
if(NOT CMake_SOURCE_DIR)
set(CMakeHelp_STANDALONE 1)
cmake_minimum_required(VERSION 3.13...3.31 FATAL_ERROR)
cmake_minimum_required(VERSION 3.13...4.0 FATAL_ERROR)
get_filename_component(tmp "${CMAKE_CURRENT_SOURCE_DIR}" PATH)
get_filename_component(CMake_SOURCE_DIR "${tmp}" PATH)
include(${CMake_SOURCE_DIR}/Modules/CTestUseLaunchers.cmake)