Skip to content

Commit c891625

Browse files
[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
1 parent 55fd57b commit c891625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/cmake/modules/AddLLDB.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function(lldb_add_to_buildtree_lldb_framework name subdir)
204204
# Destination for the copy in the build-tree. While the framework target may
205205
# not exist yet, it will exist when the generator expression gets expanded.
206206
get_target_property(framework_build_dir liblldb LIBRARY_OUTPUT_DIRECTORY)
207-
set(copy_dest "${framework_build_dir}/${subdir}")
207+
set(copy_dest "${framework_build_dir}/${subdir}/$<TARGET_FILE_NAME:${name}>")
208208

209209
# Copy into the given subdirectory for testing.
210210
add_custom_command(TARGET ${name} POST_BUILD

0 commit comments

Comments
 (0)