cmVisualStudio10TargetGenerator: Avoid GetFullPath on INTERFACE library

Issue: #21470
This commit is contained in:
Brad King
2020-11-23 15:25:57 -05:00
parent f06f4b517c
commit 54ef732b0c

View File

@@ -3944,7 +3944,8 @@ void cmVisualStudio10TargetGenerator::AddLibraries(
if (managedType != cmGeneratorTarget::ManagedType::Native &&
this->GeneratorTarget->GetManagedType(config) !=
cmGeneratorTarget::ManagedType::Native &&
l.Target->IsImported()) {
l.Target->IsImported() &&
l.Target->GetType() != cmStateEnums::INTERFACE_LIBRARY) {
auto location = l.Target->GetFullPath(config);
if (!location.empty()) {
ConvertToWindowsSlash(location);