mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-16 14:08:35 +08:00
cmTarget: Add comment clarifying interface library special case
This commit is contained in:
@@ -289,6 +289,8 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
|
|||||||
ci != configNames.end(); ++ci) {
|
ci != configNames.end(); ++ci) {
|
||||||
std::string configUpper = cmSystemTools::UpperCase(*ci);
|
std::string configUpper = cmSystemTools::UpperCase(*ci);
|
||||||
for (const char** p = configProps; *p; ++p) {
|
for (const char** p = configProps; *p; ++p) {
|
||||||
|
// Interface libraries have no output locations, so honor only
|
||||||
|
// the configuration map.
|
||||||
if (this->TargetTypeValue == cmStateEnums::INTERFACE_LIBRARY &&
|
if (this->TargetTypeValue == cmStateEnums::INTERFACE_LIBRARY &&
|
||||||
strcmp(*p, "MAP_IMPORTED_CONFIG_") != 0) {
|
strcmp(*p, "MAP_IMPORTED_CONFIG_") != 0) {
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user