Browse Source

cmVisualStudio10TargetGenerator: Avoid GetFullPath on INTERFACE library

Issue: #21470
Brad King 5 years ago
parent
commit
54ef732b0c
1 changed files with 2 additions and 1 deletions
  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);