summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-03-03 21:53:33 (GMT)
committerBrad King <brad.king@kitware.com>2005-03-03 21:53:33 (GMT)
commit2444cd382847d0065233c8cedd7fe921babfe3c9 (patch)
tree5743407786dcc87ec6690b115df0b26db37bfd1a /Source/cmake.cxx
parent860a8e370c205543c1a484ec02bf813ab04df295 (diff)
downloadCMake-2444cd382847d0065233c8cedd7fe921babfe3c9.zip
CMake-2444cd382847d0065233c8cedd7fe921babfe3c9.tar.gz
CMake-2444cd382847d0065233c8cedd7fe921babfe3c9.tar.bz2
ENH: Implementing explicit cmake_copy_f90_mod callback to copy Fortran90 modules to the stamp files more reliably. This removes the temporary hack for per-platform upper-/lower- case.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index d48f85a..bfb6281 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -23,11 +23,12 @@
#include "cmCommand.h"
#if defined(CMAKE_BUILD_WITH_CMAKE)
+# include "cmDependsFortran.h" // For -E cmake_copy_f90_mod callback.
# include "cmVariableWatch.h"
# include "cmVersion.h"
#endif
-#include "cmLocalUnixMakefileGenerator2.h"
+#include "cmLocalUnixMakefileGenerator2.h" // For -E cmake_depends callback.
// only build kdevelop generator on non-windows platforms
// when not bootstrapping cmake
@@ -834,6 +835,14 @@ int cmake::CMakeCommand(std::vector<std::string>& args)
return cmLocalUnixMakefileGenerator2::ScanDependencies(args)? 0 : 1;
}
+#if defined(CMAKE_BUILD_WITH_CMAKE)
+ // Internal CMake Fortran module support.
+ else if (args[1] == "cmake_copy_f90_mod" && args.size() >= 4)
+ {
+ return cmDependsFortran::CopyModule(args)? 0 : 1;
+ }
+#endif
+
#if defined(_WIN32) && !defined(__CYGWIN__)
// Write registry value
else if (args[1] == "write_regv" && args.size() > 3)