summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-01-27 15:03:56 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-01-27 15:04:08 (GMT)
commit306328ace87376dddb2a42bf33c6338aac5d09ad (patch)
tree79b01c98093fb858cd93458a5704b486334135c6 /Source
parent0bf9589bf16070e59f0e8bfc5bedac71d3045634 (diff)
parent08699cec6807bd3104fd0aae11377662bb1db957 (diff)
downloadCMake-306328ace87376dddb2a42bf33c6338aac5d09ad.zip
CMake-306328ace87376dddb2a42bf33c6338aac5d09ad.tar.gz
CMake-306328ace87376dddb2a42bf33c6338aac5d09ad.tar.bz2
Merge topic 'depend-on-target-real-name'
08699cec68 add_custom_command: Fix dependency on macOS framework target Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4273
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index d1a3454..261413a 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1969,7 +1969,8 @@ bool cmLocalGenerator::GetRealDependency(const std::string& inName,
case cmStateEnums::SHARED_LIBRARY:
case cmStateEnums::MODULE_LIBRARY:
case cmStateEnums::UNKNOWN_LIBRARY:
- dep = target->GetLocation(config);
+ dep = target->GetFullPath(config, cmStateEnums::RuntimeBinaryArtifact,
+ /*realname=*/true);
return true;
case cmStateEnums::OBJECT_LIBRARY:
// An object library has no single file on which to depend.