diff options
author | Brad King <brad.king@kitware.com> | 2015-05-19 16:59:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-05-19 17:00:38 (GMT) |
commit | b3795df2f4e042f8db74a1d9024ca3d03eccea2d (patch) | |
tree | 7582542b249acf43a8e159dda7459841aff373e5 /Modules/FortranCInterface.cmake | |
parent | a4596f204822c91581ca69d513e0ed3638eee495 (diff) | |
download | CMake-b3795df2f4e042f8db74a1d9024ca3d03eccea2d.zip CMake-b3795df2f4e042f8db74a1d9024ca3d03eccea2d.tar.gz CMake-b3795df2f4e042f8db74a1d9024ca3d03eccea2d.tar.bz2 |
FortranCInterface: Do not use cmake_policy(VERSION)
Do not force a specific policy version in the module because it prevents
projects from setting newer policies to NEW. In particular, projects
may want to set CMP0056 to NEW to affect any try_compile calls in this
module.
Use of this was added in commit v2.8.2~714 (FortranCInterface: Use CMake
2.8.0 behavior, 2009-11-17) in order to set CMP0007 to NEW. Simply set
this policy explicitly instead.
Diffstat (limited to 'Modules/FortranCInterface.cmake')
-rw-r--r-- | Modules/FortranCInterface.cmake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/FortranCInterface.cmake b/Modules/FortranCInterface.cmake index 27f8a82..70c3fd7 100644 --- a/Modules/FortranCInterface.cmake +++ b/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. |