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

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


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

Modified Files:
	Detect.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: Detect.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FortranCInterface/Detect.cmake,v
retrieving revision 1.3
retrieving revision 1.4
diff -C 2 -d -r1.3 -r1.4
*** Detect.cmake	28 Sep 2009 15:46:51 -0000	1.3
--- Detect.cmake	19 Nov 2009 22:42:48 -0000	1.4
***************
*** 40,43 ****
--- 40,46 ----
    ${FortranCInterface_SOURCE_DIR}
    FortranCInterface
+   CMAKE_FLAGS
+     "-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}"
+     "-DCMAKE_Fortran_FLAGS=${CMAKE_Fortran_FLAGS}"
    OUTPUT_VARIABLE FortranCInterface_OUTPUT)
  set(FortranCInterface_COMPILED ${FortranCInterface_COMPILED})



More information about the Cmake-commits mailing list