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:
commit
41d833e1e9
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue