浏览代码

cmVisualStudio10TargetGenerator: Avoid GetFullPath on INTERFACE library

Issue: #21470
Brad King 5 年之前
父节点
当前提交
54ef732b0c
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Source/cmVisualStudio10TargetGenerator.cxx

+ 2 - 1
Source/cmVisualStudio10TargetGenerator.cxx

@@ -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);