mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
cmake remove noop policies (#6586)
These are made no-ops by the cmake_minimum_required(VERSION 3.26) * CMP0074 by CMake 3.12 * CMP0077 by CMake 3.13 * CMP0083 by CMake 3.14 * CMP0127 by CMake 3.22 * CMP0135 by CMake 3.24
This commit is contained in:
+1
-24
@@ -30,33 +30,11 @@
|
|||||||
cmake_minimum_required (VERSION 3.26)
|
cmake_minimum_required (VERSION 3.26)
|
||||||
project (HDF5 C)
|
project (HDF5 C)
|
||||||
|
|
||||||
if (POLICY CMP0074)
|
|
||||||
# find_package() uses <PackageName>_ROOT variables.
|
|
||||||
cmake_policy (SET CMP0074 NEW)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (POLICY CMP0144)
|
if (POLICY CMP0144)
|
||||||
# <PACKAGENAME> is the upper-cased package name.
|
# CMake >= 3.27 <PACKAGENAME> is the upper-cased package name.
|
||||||
cmake_policy (SET CMP0144 NEW)
|
cmake_policy (SET CMP0144 NEW)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (POLICY CMP0083)
|
|
||||||
# To control generation of Position Independent Executable (PIE) or not,
|
|
||||||
# some flags are required at link time.
|
|
||||||
cmake_policy (SET CMP0083 NEW)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (POLICY CMP0127)
|
|
||||||
# to evaluate each condition as if(<condition>), where <condition> is re-parsed
|
|
||||||
# as if literally written in a call to if().
|
|
||||||
cmake_policy (SET CMP0127 NEW)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
# Avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP in CMake 3.24:
|
|
||||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
|
|
||||||
cmake_policy(SET CMP0135 NEW)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# Instructions for use : Normal Build
|
# Instructions for use : Normal Build
|
||||||
#
|
#
|
||||||
@@ -1571,4 +1549,3 @@ include (CMakeInstallation.cmake)
|
|||||||
# Hide some miscellaneous CMake variables from the default GUI
|
# Hide some miscellaneous CMake variables from the default GUI
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
mark_as_advanced (FETCHCONTENT_BASE_DIR FETCHCONTENT_FULLY_DISCONNECTED FETCHCONTENT_QUIET FETCHCONTENT_UPDATES_DISCONNECTED)
|
mark_as_advanced (FETCHCONTENT_BASE_DIR FETCHCONTENT_FULLY_DISCONNECTED FETCHCONTENT_QUIET FETCHCONTENT_UPDATES_DISCONNECTED)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user