diff options
author | Brad King <brad.king@kitware.com> | 2008-05-08 10:09:14 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-05-08 10:09:14 -0400 |
commit | 12935b1599a2186950db644ff336aca16d725da0 (patch) | |
tree | a3ca5b852b4896ab4849dba8a7fb20f1182e7d42 /Source/cmDepends.cxx | |
parent | 92198d6b37c26ad5fa41f8cbed28e35af15db1cc (diff) | |
download | cmake-12935b1599a2186950db644ff336aca16d725da0.tar.gz |
ENH: Light refactoring of implicit dependency scanning configuration implementation.
- Move lookup of config variables from cmLocalUnixMakefileGenerator3 to cmDepends hierarchy.
Diffstat (limited to 'Source/cmDepends.cxx')
-rw-r--r-- | Source/cmDepends.cxx | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/Source/cmDepends.cxx b/Source/cmDepends.cxx index 06361b35f5..2cb1238576 100644 --- a/Source/cmDepends.cxx +++ b/Source/cmDepends.cxx @@ -24,11 +24,12 @@ #include <string.h> //---------------------------------------------------------------------------- -cmDepends::cmDepends(): +cmDepends::cmDepends(cmLocalGenerator* lg, const char* targetDir): CompileDirectory(), - LocalGenerator(0), + LocalGenerator(lg), Verbose(false), FileComparison(0), + TargetDirectory(targetDir), MaxPath(cmSystemTools::GetMaximumFilePathLength()), Dependee(new char[MaxPath]), Depender(new char[MaxPath]) @@ -231,4 +232,15 @@ bool cmDepends::CheckDependencies(std::istream& internalDepends) return okay; } - +//---------------------------------------------------------------------------- +void cmDepends::SetIncludePathFromLanguage(const char* lang) +{ + std::string includePathVar = "CMAKE_"; + includePathVar += lang; + includePathVar += "_INCLUDE_PATH"; + cmMakefile* mf = this->LocalGenerator->GetMakefile(); + if(const char* includePath = mf->GetDefinition(includePathVar.c_str())) + { + cmSystemTools::ExpandListArgument(includePath, this->IncludePath); + } +} |