Explorar el Código

ENH: Added object file dependency scanning to cmLocalUnixMakefileGenerator2. This needs a hook in cmake.cxx.

Brad King hace 21 años
padre
commit
2a7e2adf7a
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      Source/cmake.cxx

+ 8 - 0
Source/cmake.cxx

@@ -24,6 +24,8 @@
 #include "cmVariableWatch.h"
 #include "cmVariableWatch.h"
 #include "cmVersion.h"
 #include "cmVersion.h"
 
 
+#include "cmLocalUnixMakefileGenerator2.h"
+
 // only build kdevelop generator on non-windows platforms
 // only build kdevelop generator on non-windows platforms
 // when not bootstrapping cmake
 // when not bootstrapping cmake
 #if !defined(_WIN32)
 #if !defined(_WIN32)
@@ -822,6 +824,12 @@ int cmake::CMakeCommand(std::vector<std::string>& args)
       return result;
       return result;
       }
       }
 
 
+    // Internal CMake dependency scanning support.
+    else if (args[1] == "cmake_depends" && args.size() >= 5)
+      {
+      return cmLocalUnixMakefileGenerator2::ScanDependencies(args)? 0 : 1;
+      }
+
 #if defined(_WIN32) && !defined(__CYGWIN__)
 #if defined(_WIN32) && !defined(__CYGWIN__)
     // Write registry value
     // Write registry value
     else if (args[1] == "write_regv" && args.size() > 3)
     else if (args[1] == "write_regv" && args.size() > 3)