1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-15 12:16:40 +08:00

cmTarget: Clarify comments in GetMappedConfig

Clarify comments explaining the availability of a target location
(file on disk) to distinguish this from the existence of the target.
This commit is contained in:
Brad King
2016-11-03 14:53:35 -04:00
parent 60d80bca4a
commit 925e4270fd

View File

@@ -1438,8 +1438,8 @@ bool cmTarget::GetMappedConfig(std::string const& desired_config,
} }
// If we needed to find one of the mapped configurations but did not // If we needed to find one of the mapped configurations but did not
// then the target is not found. The project does not want any // then the target location is not found. The project does not want
// other configuration. // any other configuration.
if (!mappedConfigs.empty() && !*loc && !*imp) { if (!mappedConfigs.empty() && !*loc && !*imp) {
return false; return false;
} }
@@ -1493,7 +1493,7 @@ bool cmTarget::GetMappedConfig(std::string const& desired_config,
} }
} }
} }
// If we have not yet found it then the target is not available. // If we have not yet found it then the target location is not available.
if (!*loc && !*imp) { if (!*loc && !*imp) {
return false; return false;
} }