diff options
author | Brad King <brad.king@kitware.com> | 2014-12-15 16:06:44 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-12-15 16:06:44 (GMT) |
commit | 6da3f173093ed5b6b2b1944c9c561fcd62d07eee (patch) | |
tree | 6e86dd99ef73da41c67af82305741e00a85ff4c9 /Source | |
parent | 4d2c6290453e00f0b1060788cf52a5a01963b864 (diff) | |
parent | 97b65f8156734db2adc367b27c822a5fe332d740 (diff) | |
download | CMake-6da3f173093ed5b6b2b1944c9c561fcd62d07eee.zip CMake-6da3f173093ed5b6b2b1944c9c561fcd62d07eee.tar.gz CMake-6da3f173093ed5b6b2b1944c9c561fcd62d07eee.tar.bz2 |
Merge topic 'suncc-fixes'
97b65f81 Misc. fixes for the Oracle / Sun compiler.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmComputeLinkDepends.cxx | 5 | ||||
-rw-r--r-- | Source/cmFindPackageCommand.cxx | 15 |
2 files changed, 12 insertions, 8 deletions
diff --git a/Source/cmComputeLinkDepends.cxx b/Source/cmComputeLinkDepends.cxx index 1fb8f30..a636d23 100644 --- a/Source/cmComputeLinkDepends.cxx +++ b/Source/cmComputeLinkDepends.cxx @@ -266,9 +266,10 @@ cmComputeLinkDepends::Compute() // Iterate in reverse order so we can keep only the last occurrence // of a shared library. std::set<int> emmitted; + const std::vector<int>& cFLO = this->FinalLinkOrder; for(std::vector<int>::const_reverse_iterator - li = this->FinalLinkOrder.rbegin(), - le = this->FinalLinkOrder.rend(); + li = cFLO.rbegin(), + le = cFLO.rend(); li != le; ++li) { int i = *li; diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx index 0130006..8410cda 100644 --- a/Source/cmFindPackageCommand.cxx +++ b/Source/cmFindPackageCommand.cxx @@ -80,12 +80,15 @@ void cmFindPackageCommand::AppendSearchPathGroups() PathLabel::SystemRegistry); // Create the new path objects - this->LabeledPaths.insert(std::make_pair(PathLabel::UserRegistry, - cmSearchPath(this))); - this->LabeledPaths.insert(std::make_pair(PathLabel::Builds, - cmSearchPath(this))); - this->LabeledPaths.insert(std::make_pair(PathLabel::SystemRegistry, - cmSearchPath(this))); + this->LabeledPaths.insert( + std::pair<cmFindCommon::PathLabel, cmSearchPath>( + PathLabel::UserRegistry, cmSearchPath(this))); + this->LabeledPaths.insert( + std::pair<cmFindCommon::PathLabel, cmSearchPath>( + PathLabel::Builds, cmSearchPath(this))); + this->LabeledPaths.insert( + std::pair<cmFindCommon::PathLabel, cmSearchPath>( + PathLabel::SystemRegistry, cmSearchPath(this))); } //---------------------------------------------------------------------------- |