[Cmake-commits] [cmake-commits] king committed FortranCInterface.cmake 1.21 1.22

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Nov 19 17:42:50 EST 2009


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

Modified Files:
	FortranCInterface.cmake 
Log Message:
FortranCInterface: Honor language flags in checks

We pass CMAKE_C_FLAGS, CMAKE_CXX_FLAGS, and CMAKE_Fortran_FLAGS through
try_compile() for the FortranCInterface Detect and Verify projects.
This honors user-specified compiler flags for each language, thus
supporting flags that affect the Fortran mangling.


Index: FortranCInterface.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FortranCInterface.cmake,v
retrieving revision 1.21
retrieving revision 1.22
diff -C 2 -d -r1.21 -r1.22
*** FortranCInterface.cmake	17 Nov 2009 19:33:28 -0000	1.21
--- FortranCInterface.cmake	19 Nov 2009 22:42:47 -0000	1.22
***************
*** 249,252 ****
--- 249,255 ----
        CMAKE_FLAGS -DVERIFY_CXX=${verify_cxx}
                    -DCMAKE_VERBOSE_MAKEFILE=ON
+                  "-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}"
+                  "-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}"
+                  "-DCMAKE_Fortran_FLAGS=${CMAKE_Fortran_FLAGS}"
        OUTPUT_VARIABLE _output)
      file(WRITE "${FortranCInterface_BINARY_DIR}/Verify${lang}/output.txt" "${_output}")



More information about the Cmake-commits mailing list