[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.1 1.2
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Dec 15 14:02:55 EST 2009
Update of /cvsroot/CMake/CMake/Tests/FortranC
In directory public:/mounts/ram/cvs-serv30196/Tests/FortranC
Modified Files:
CMakeLists.txt
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: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/FortranC/CMakeLists.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** CMakeLists.txt 14 Dec 2009 17:36:15 -0000 1.1
--- CMakeLists.txt 15 Dec 2009 19:02:52 -0000 1.2
***************
*** 14,22 ****
if(FortranC_TEST_FLAGS)
# Test whether FortranCInterface checks see C flags.
! set(ENV{TEST_OPT_CC} "--test-opt-cc")
set(CMAKE_C_FLAGS "$ENV{TEST_OPT_CC}")
# Test whether FortranCInterface checks see Fortran flags.
! set(ENV{TEST_OPT_FC} "--test-opt-fc")
set(CMAKE_Fortran_FLAGS "$ENV{TEST_OPT_FC}")
endif()
--- 14,22 ----
if(FortranC_TEST_FLAGS)
# Test whether FortranCInterface checks see C flags.
! set(ENV{TEST_OPT_CC} "--test-opt-cc=1")
set(CMAKE_C_FLAGS "$ENV{TEST_OPT_CC}")
# Test whether FortranCInterface checks see Fortran flags.
! set(ENV{TEST_OPT_FC} "--test-opt-fc=1")
set(CMAKE_Fortran_FLAGS "$ENV{TEST_OPT_FC}")
endif()
More information about the Cmake-commits
mailing list