[Cmake-commits] [cmake-commits] king committed FortranCInterface.cmake 1.20 1.21
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Nov 17 14:33:32 EST 2009
Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv10834/Modules
Modified Files:
FortranCInterface.cmake
Log Message:
FortranCInterface: Use CMake 2.8.0 behavior
The FortranCInterface module should execute with CMake 2.8.0 behavior
even if policies are set differently by the including project. In
particular, it makes use of empty list elements and therefore expects
NEW behavior of CMP0007.
Index: FortranCInterface.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FortranCInterface.cmake,v
retrieving revision 1.20
retrieving revision 1.21
diff -C 2 -d -r1.20 -r1.21
*** FortranCInterface.cmake 28 Sep 2009 15:46:50 -0000 1.20
--- FortranCInterface.cmake 17 Nov 2009 19:33:28 -0000 1.21
***************
*** 101,104 ****
--- 101,108 ----
endif()
+ # Use CMake 2.8.0 behavior for this module regardless of including context.
+ cmake_policy(PUSH)
+ cmake_policy(VERSION 2.8.0)
+
#-----------------------------------------------------------------------------
# Verify that C and Fortran are available.
***************
*** 274,275 ****
--- 278,282 ----
endif()
endfunction()
+
+ # Restore including context policies.
+ cmake_policy(POP)
More information about the Cmake-commits
mailing list