summaryrefslogtreecommitdiffstats
path: root/Tests/FortranC
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-12-15 19:02:52 (GMT)
committerBrad King <brad.king@kitware.com>2009-12-15 19:02:52 (GMT)
commit0306080e6e11620f3b36ee515078f389bc00e4f3 (patch)
treebcf5a029d4f7fa438a607d19271ff1bb494e6481 /Tests/FortranC
parent8a87458954af2cc0efccd3ca76c95eeb4e9de767 (diff)
downloadCMake-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 'Tests/FortranC')
-rw-r--r--Tests/FortranC/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/FortranC/CMakeLists.txt b/Tests/FortranC/CMakeLists.txt
index e4e8ca1..12d4165 100644
--- a/Tests/FortranC/CMakeLists.txt
+++ b/Tests/FortranC/CMakeLists.txt
@@ -13,11 +13,11 @@ file(REMOVE_RECURSE ${CMAKE_BINARY_DIR}/CMakeFiles/FortranCInterface)
if(FortranC_TEST_FLAGS)
# Test whether FortranCInterface checks see C flags.
- set(ENV{TEST_OPT_CC} "--test-opt-cc")
+ 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")
+ set(ENV{TEST_OPT_FC} "--test-opt-fc=1")
set(CMAKE_Fortran_FLAGS "$ENV{TEST_OPT_FC}")
endif()