summaryrefslogtreecommitdiff
path: root/Tests/Fortran
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-08-24 08:49:35 -0400
committerBrad King <brad.king@kitware.com>2009-08-24 08:49:35 -0400
commita9be85da2ecd7677d3ba72dc2e279541a32907c2 (patch)
tree10608b982a38df84f665be5bbea49e5a56921c55 /Tests/Fortran
parent14f7a043e3686a6a2b821e759e391c54f3239479 (diff)
downloadcmake-a9be85da2ecd7677d3ba72dc2e279541a32907c2.tar.gz
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 'Tests/Fortran')
-rw-r--r--Tests/Fortran/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/Fortran/CMakeLists.txt b/Tests/Fortran/CMakeLists.txt
index 312b4d7b0a..5f58f77276 100644
--- a/Tests/Fortran/CMakeLists.txt
+++ b/Tests/Fortran/CMakeLists.txt
@@ -14,6 +14,8 @@ function(test_fortran_c_interface_module)
message(STATUS "Testing FortranCInterface module")
# test the C to Fortran interface module
include(FortranCInterface)
+ FortranCInterface_VERIFY(QUIET)
+ FortranCInterface_VERIFY(QUIET CXX)
if(CMAKE_Fortran_COMPILER_SUPPORTS_F90)
if(NOT CMAKE_Fortran_COMPILER_ID MATCHES "SunPro|MIPSpro")
set(module_expected 1)