diff options
Diffstat (limited to 'Source/cmOrderDirectories.cxx')
-rw-r--r-- | Source/cmOrderDirectories.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmOrderDirectories.cxx b/Source/cmOrderDirectories.cxx index f95c68a..fd5765d 100644 --- a/Source/cmOrderDirectories.cxx +++ b/Source/cmOrderDirectories.cxx @@ -372,6 +372,15 @@ cmOrderDirectories //---------------------------------------------------------------------------- void cmOrderDirectories +::AddLanguageDirectories(std::vector<std::string> const& dirs) +{ + this->LanguageDirectories.insert(this->LanguageDirectories.end(), + dirs.begin(), dirs.end()); +} + +//---------------------------------------------------------------------------- +void +cmOrderDirectories ::SetImplicitDirectories(std::set<cmStdString> const& implicitDirs) { this->ImplicitDirectories = implicitDirs; @@ -400,6 +409,9 @@ void cmOrderDirectories::CollectOriginalDirectories() { this->ConstraintEntries[i]->AddDirectory(); } + + // Add language runtime directories last. + this->AddOriginalDirectories(this->LanguageDirectories); } //---------------------------------------------------------------------------- |