summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Granitz <stefan.graenitz@gmail.com>2019-07-25 10:47:49 +0000
committerStefan Granitz <stefan.graenitz@gmail.com>2019-07-25 10:47:49 +0000
commitc8916258d5a9f6cdf1d6125b3aa3e68b91e61a98 (patch)
treea79b17f08e1dd5bb210ce4dd8456fe447471b422
parent55fd57ba95a3e6e4f0c5738abc067934f995c4c8 (diff)
downloadbcm5719-llvm-c8916258d5a9f6cdf1d6125b3aa3e68b91e61a98.tar.gz
bcm5719-llvm-c8916258d5a9f6cdf1d6125b3aa3e68b91e61a98.zip
[lldb][CMake] Fix framework-enabled build detail for Xcode
If debugserver or any other framework tool gets built first, its post-build copy operation was using 'Resources' as the file name instead of the destination directory. It was not a problem with Ninja, because here the framework structure was alreaady created at configuration time. With this fix, both generators are happy. llvm-svn: 367005
-rw-r--r--lldb/cmake/modules/AddLLDB.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/cmake/modules/AddLLDB.cmake b/lldb/cmake/modules/AddLLDB.cmake
index d8fc1ab7db6..a0b007c23d0 100644
--- a/lldb/cmake/modules/AddLLDB.cmake
+++ b/lldb/cmake/modules/AddLLDB.cmake
@@ -204,7 +204,7 @@ function(lldb_add_to_buildtree_lldb_framework name subdir)
# Destination for the copy in the build-tree. While the framework target may
# not exist yet, it will exist when the generator expression gets expanded.
get_target_property(framework_build_dir liblldb LIBRARY_OUTPUT_DIRECTORY)
- set(copy_dest "${framework_build_dir}/${subdir}")
+ set(copy_dest "${framework_build_dir}/${subdir}/$<TARGET_FILE_NAME:${name}>")
# Copy into the given subdirectory for testing.
add_custom_command(TARGET ${name} POST_BUILD
OpenPOWER on IntegriCloud