[cmake-commits] king committed CMakeLists.txt 1.1 1.2
cmake-commits at cmake.org
cmake-commits at cmake.org
Sun Dec 30 16:11:40 EST 2007
Update of /cvsroot/CMake/CMake/Tests/Fortran/Library
In directory public:/mounts/ram/cvs-serv20471/Tests/Fortran/Library
Modified Files:
CMakeLists.txt
Log Message:
ENH: Implemented Fortran module output directory and search path flags.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Fortran/Library/CMakeLists.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CMakeLists.txt 15 Dec 2007 20:36:14 -0000 1.1
+++ CMakeLists.txt 30 Dec 2007 21:11:38 -0000 1.2
@@ -1,3 +1,11 @@
+INCLUDE_DIRECTORIES(${Library_MODDIR})
ADD_LIBRARY(subdir_mods a.f90 b.f90)
ADD_EXECUTABLE(subdir_exe main.f90)
TARGET_LINK_LIBRARIES(subdir_exe subdir_mods)
+
+# Test module output directory if available.
+IF(CMAKE_Fortran_MODDIR_FLAG)
+ SET_TARGET_PROPERTIES(subdir_mods PROPERTIES
+ Fortran_MODULE_DIRECTORY modules
+ )
+ENDIF(CMAKE_Fortran_MODDIR_FLAG)
More information about the Cmake-commits
mailing list