diff options
author | Brad King <brad.king@kitware.com> | 2009-12-15 19:02:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-12-15 19:02:52 (GMT) |
commit | 0306080e6e11620f3b36ee515078f389bc00e4f3 (patch) | |
tree | bcf5a029d4f7fa438a607d19271ff1bb494e6481 /Modules/FortranCInterface.cmake | |
parent | 8a87458954af2cc0efccd3ca76c95eeb4e9de767 (diff) | |
download | CMake-0306080e6e11620f3b36ee515078f389bc00e4f3.zip CMake-0306080e6e11620f3b36ee515078f389bc00e4f3.tar.gz CMake-0306080e6e11620f3b36ee515078f389bc00e4f3.tar.bz2 |
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.
Diffstat (limited to 'Modules/FortranCInterface.cmake')
-rw-r--r-- | Modules/FortranCInterface.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/FortranCInterface.cmake b/Modules/FortranCInterface.cmake index 812e319..a7d5571 100644 --- a/Modules/FortranCInterface.cmake +++ b/Modules/FortranCInterface.cmake @@ -248,9 +248,9 @@ function(FortranCInterface_VERIFY) VerifyFortranC 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}" + "-DCMAKE_C_FLAGS:STRING=${CMAKE_C_FLAGS}" + "-DCMAKE_CXX_FLAGS:STRING=${CMAKE_CXX_FLAGS}" + "-DCMAKE_Fortran_FLAGS:STRING=${CMAKE_Fortran_FLAGS}" OUTPUT_VARIABLE _output) file(WRITE "${FortranCInterface_BINARY_DIR}/Verify${lang}/output.txt" "${_output}") |