Browse Source

Merge topic 'cleanup-module-policies'

b3795df2 FortranCInterface: Do not use cmake_policy(VERSION)
a4596f20 CheckTypeSize: Do not use cmake_policy(VERSION)
Brad King 10 years ago
parent
commit
41d833e1e9
2 changed files with 1 additions and 3 deletions
  1. 0 1
      Modules/CheckTypeSize.cmake
  2. 1 2
      Modules/FortranCInterface.cmake

+ 0 - 1
Modules/CheckTypeSize.cmake

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

+ 1 - 2
Modules/FortranCInterface.cmake

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