From c8916258d5a9f6cdf1d6125b3aa3e68b91e61a98 Mon Sep 17 00:00:00 2001 From: Stefan Granitz Date: Thu, 25 Jul 2019 10:47:49 +0000 Subject: [PATCH] [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 --- lldb/cmake/modules/AddLLDB.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/cmake/modules/AddLLDB.cmake b/lldb/cmake/modules/AddLLDB.cmake index d8fc1ab..a0b007c 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}/$") # Copy into the given subdirectory for testing. add_custom_command(TARGET ${name} POST_BUILD -- 2.7.4