[cmake-commits] king committed CMakeLists.txt 1.10 1.11
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Dec 28 22:53:36 EST 2007
Update of /cvsroot/CMake/CMake/Tests/Fortran
In directory public:/mounts/ram/cvs-serv21852
Modified Files:
CMakeLists.txt
Log Message:
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.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Fortran/CMakeLists.txt,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- CMakeLists.txt 28 Dec 2007 16:50:29 -0000 1.10
+++ CMakeLists.txt 29 Dec 2007 03:53:34 -0000 1.11
@@ -7,6 +7,7 @@
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 @@
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 @@
ADD_SUBDIRECTORY(Library)
ADD_SUBDIRECTORY(Executable)
-ENDIF(CMAKE_Fortran_COMPILER_SUPPORTS_F90)
+ENDIF(TEST_MODULE_DEPENDS)
More information about the Cmake-commits
mailing list