summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-12-29 03:53:34 (GMT)
committerBrad King <brad.king@kitware.com>2007-12-29 03:53:34 (GMT)
commit2da186266e3d46e9a3e9f0eebb106fe507cb5df5 (patch)
treec19be2f15e3abf2851997c53bea9c143ea030d60 /Tests
parentedd5f1f5f1457d4c7221f1b1c4555076bf0969cf (diff)
downloadCMake-2da186266e3d46e9a3e9f0eebb106fe507cb5df5.zip
CMake-2da186266e3d46e9a3e9f0eebb106fe507cb5df5.tar.gz
CMake-2da186266e3d46e9a3e9f0eebb106fe507cb5df5.tar.bz2
BUG: Disable test of fortran module dependencies except on GNU for now. A module path feature is needed for Sun support because it uses -M instead of -I for the module search path.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Fortran/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/Tests/Fortran/CMakeLists.txt b/Tests/Fortran/CMakeLists.txt
index fc22a01..de1c824 100644
--- a/Tests/Fortran/CMakeLists.txt
+++ b/Tests/Fortran/CMakeLists.txt
@@ -7,6 +7,7 @@ MESSAGE("CMAKE_Fortran_COMPILER = ${CMAKE_Fortran_COMPILER}")
MESSAGE("CMAKE_Fortran_FLAGS = ${CMAKE_Fortran_FLAGS}")
ADD_EXECUTABLE(testf hello.f)
+SET(TEST_MODULE_DEPENDS 0)
IF(CMAKE_Fortran_COMPILER_SUPPORTS_F90)
ADD_EXECUTABLE(test_module
test_module_main.f90
@@ -22,6 +23,12 @@ IF(CMAKE_Fortran_COMPILER_SUPPORTS_F90)
in_interface/main.f90
in_interface/module.f90)
+ IF(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
+ SET(TEST_MODULE_DEPENDS 1)
+ ENDIF(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
+ENDIF(CMAKE_Fortran_COMPILER_SUPPORTS_F90)
+
+IF(TEST_MODULE_DEPENDS)
# Build the external project separately using a custom target.
# Make sure it uses the same build configuration as this test.
IF(CMAKE_CONFIGURATION_TYPES)
@@ -52,4 +59,4 @@ IF(CMAKE_Fortran_COMPILER_SUPPORTS_F90)
ADD_SUBDIRECTORY(Library)
ADD_SUBDIRECTORY(Executable)
-ENDIF(CMAKE_Fortran_COMPILER_SUPPORTS_F90)
+ENDIF(TEST_MODULE_DEPENDS)