mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-03 20:29:56 -06:00
Merge topic 'cleanup-module-policies'
b3795df2FortranCInterface: Do not use cmake_policy(VERSION)a4596f20CheckTypeSize: Do not use cmake_policy(VERSION)
This commit is contained in:
@@ -82,7 +82,6 @@ include(CheckIncludeFile)
|
||||
include(CheckIncludeFileCXX)
|
||||
|
||||
cmake_policy(PUSH)
|
||||
cmake_policy(VERSION 3.0)
|
||||
cmake_policy(SET CMP0054 NEW)
|
||||
|
||||
get_filename_component(__check_type_size_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
|
||||
@@ -144,9 +144,8 @@ if(FortranCInterface_SOURCE_DIR)
|
||||
return()
|
||||
endif()
|
||||
|
||||
# Use CMake 2.8.0 behavior for this module regardless of including context.
|
||||
cmake_policy(PUSH)
|
||||
cmake_policy(VERSION 2.8.0)
|
||||
cmake_policy(SET CMP0007 NEW)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Verify that C and Fortran are available.
|
||||
|
||||
Reference in New Issue
Block a user