summaryrefslogtreecommitdiffstats
path: root/Modules/FortranCInterface/Detect.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-08-24 12:49:35 (GMT)
committerBrad King <brad.king@kitware.com>2009-08-24 12:49:35 (GMT)
commita9be85da2ecd7677d3ba72dc2e279541a32907c2 (patch)
tree10608b982a38df84f665be5bbea49e5a56921c55 /Modules/FortranCInterface/Detect.cmake
parent14f7a043e3686a6a2b821e759e391c54f3239479 (diff)
downloadCMake-a9be85da2ecd7677d3ba72dc2e279541a32907c2.zip
CMake-a9be85da2ecd7677d3ba72dc2e279541a32907c2.tar.gz
CMake-a9be85da2ecd7677d3ba72dc2e279541a32907c2.tar.bz2
Create FortranCInterface_VERIFY function
This function builds a simple test project using a combination of Fortran and C (and optionally C++) to verify that the compilers are compatible. The idea is to help projects report very early to users that the compilers specified cannot mix languages.
Diffstat (limited to 'Modules/FortranCInterface/Detect.cmake')
-rw-r--r--Modules/FortranCInterface/Detect.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/FortranCInterface/Detect.cmake b/Modules/FortranCInterface/Detect.cmake
index b848d33..abc012e 100644
--- a/Modules/FortranCInterface/Detect.cmake
+++ b/Modules/FortranCInterface/Detect.cmake
@@ -17,6 +17,10 @@ else()
return()
endif()
+# Invalidate verification results.
+unset(FortranCInterface_VERIFIED_C CACHE)
+unset(FortranCInterface_VERIFIED_CXX CACHE)
+
set(_result)
# Build a sample project which reports symbols.