summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.cxx
diff options
context:
space:
mode:
authorChuck Atkins <chuck.atkins@kitware.com>2014-12-12 15:04:47 (GMT)
committerChuck Atkins <chuck.atkins@kitware.com>2014-12-12 15:04:47 (GMT)
commit97b65f8156734db2adc367b27c822a5fe332d740 (patch)
treeecc985ba84634f5ddb3fab9ff1be5635406729bd /Source/cmFindPackageCommand.cxx
parent3171fe0afa7169c1e814a5c0e08b115002f0d3c3 (diff)
downloadCMake-97b65f8156734db2adc367b27c822a5fe332d740.zip
CMake-97b65f8156734db2adc367b27c822a5fe332d740.tar.gz
CMake-97b65f8156734db2adc367b27c822a5fe332d740.tar.bz2
Misc. fixes for the Oracle / Sun compiler.
A few pieces of code have some ambiguous type deduction that seems to resolve correctly for most compilers but not for the Oracle compiler. This makes those few instances more explicit.
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-rw-r--r--Source/cmFindPackageCommand.cxx15
1 files changed, 9 insertions, 6 deletions
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)));
}
//----------------------------------------------------------------------------