diff options
author | Brad King <brad.king@kitware.com> | 2020-01-24 16:03:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-01-24 16:29:45 (GMT) |
commit | 08699cec6807bd3104fd0aae11377662bb1db957 (patch) | |
tree | 2e83615102ae3924a1cada57a0118f03a50fed8a /Source | |
parent | ab2fc918216011a03f0fe7696e7bba67fc2627b3 (diff) | |
download | CMake-08699cec6807bd3104fd0aae11377662bb1db957.zip CMake-08699cec6807bd3104fd0aae11377662bb1db957.tar.gz CMake-08699cec6807bd3104fd0aae11377662bb1db957.tar.bz2 |
add_custom_command: Fix dependency on macOS framework target
When the `DEPENDS` option names a logical target name, convert to the
"real" path of that target rather than any of the symlink-provided
alternative file names. This makes the dependencies consistent with the
outputs named by link rules producing the target artifacts.
Fixes: #20264
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 3 |
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. |