[Cmake-commits] [cmake-commits] king committed Detect.cmake 1.4 1.5

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Dec 15 14:02:54 EST 2009


Update of /cvsroot/CMake/CMake/Modules/FortranCInterface
In directory public:/mounts/ram/cvs-serv30196/Modules/FortranCInterface

Modified Files:
	Detect.cmake 
Log Message:
FortranCInterface: Support '=' in language flags

The commit "FortranCInterface: Honor language flags in checks" taught
the FortranCInterface module to pass C and Fortran flags into its
detection and verification checks.  We improve on the change to allow
the '=' character in the language flags.  This requires passing the
cache entry type with the -D options.


Index: Detect.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FortranCInterface/Detect.cmake,v
retrieving revision 1.4
retrieving revision 1.5
diff -C 2 -d -r1.4 -r1.5
*** Detect.cmake	19 Nov 2009 22:42:48 -0000	1.4
--- Detect.cmake	15 Dec 2009 19:02:49 -0000	1.5
***************
*** 41,46 ****
    FortranCInterface
    CMAKE_FLAGS
!     "-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}"
!     "-DCMAKE_Fortran_FLAGS=${CMAKE_Fortran_FLAGS}"
    OUTPUT_VARIABLE FortranCInterface_OUTPUT)
  set(FortranCInterface_COMPILED ${FortranCInterface_COMPILED})
--- 41,46 ----
    FortranCInterface
    CMAKE_FLAGS
!     "-DCMAKE_C_FLAGS:STRING=${CMAKE_C_FLAGS}"
!     "-DCMAKE_Fortran_FLAGS:STRING=${CMAKE_Fortran_FLAGS}"
    OUTPUT_VARIABLE FortranCInterface_OUTPUT)
  set(FortranCInterface_COMPILED ${FortranCInterface_COMPILED})



More information about the Cmake-commits mailing list