Merge topic 'cleanup-module-policies'

b3795df2 FortranCInterface: Do not use cmake_policy(VERSION)
a4596f20 CheckTypeSize: Do not use cmake_policy(VERSION)
This commit is contained in:
Brad King 2015-05-21 09:03:38 -04:00 committed by CMake Topic Stage
commit 41d833e1e9
2 changed files with 1 additions and 3 deletions

View File

@ -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)

View File

@ -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.