diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-06-07 14:47:28 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-06-07 14:47:28 (GMT) |
commit | 749fe2639429cd2d3944c01ba70515c2d9d6fbcc (patch) | |
tree | 3c9e16f28dddd01bee9b7800c983a6a0d5f83574 /Source/cmake.cxx | |
parent | 6af66e8b200dfabd44aae9a0247c146313822db7 (diff) | |
download | CMake-749fe2639429cd2d3944c01ba70515c2d9d6fbcc.zip CMake-749fe2639429cd2d3944c01ba70515c2d9d6fbcc.tar.gz CMake-749fe2639429cd2d3944c01ba70515c2d9d6fbcc.tar.bz2 |
ENH: fix problem with dependency scanning
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index f022df7..f27f010 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -826,7 +826,7 @@ int cmake::CMakeCommand(std::vector<std::string>& args) } // Internal CMake dependency scanning support. - else if (args[1] == "cmake_depends" && args.size() >= 6) + else if (args[1] == "cmake_depends" && args.size() >= 8) { cmake cm; cmGlobalGenerator *ggd = cm.CreateGlobalGenerator(args[2].c_str()); @@ -835,7 +835,7 @@ int cmake::CMakeCommand(std::vector<std::string>& args) { std::auto_ptr<cmLocalGenerator> lgd(ggd->CreateLocalGenerator()); lgd->SetGlobalGenerator(ggd); - return lgd->ScanDependencies(args)? 0 : 1; + return lgd->ScanDependencies(args)? 0 : 2; } return 1; } |