summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-11-23 15:25:57 -0500
committerBrad King <brad.king@kitware.com>2020-11-23 15:57:05 -0500
commit54ef732b0c409b3ed9376bf6cdb40d1038209ecb (patch)
tree9a506b574c22b32e997c73f437dedb6296509fc6
parentf06f4b517cad32ec619774ce8a3a529c3ae32ebd (diff)
downloadcmake-54ef732b0c409b3ed9376bf6cdb40d1038209ecb.tar.gz
cmVisualStudio10TargetGenerator: Avoid GetFullPath on INTERFACE library
Issue: #21470
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index a482ed6866..4eb3b7f8fc 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/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);