diff options
-rw-r--r-- | lldb/cmake/modules/AddLLDB.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/cmake/modules/AddLLDB.cmake b/lldb/cmake/modules/AddLLDB.cmake index e5882329867..540d01362f0 100644 --- a/lldb/cmake/modules/AddLLDB.cmake +++ b/lldb/cmake/modules/AddLLDB.cmake @@ -199,7 +199,8 @@ endfunction() 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. - set(copy_dest "$<TARGET_FILE_DIR:liblldb>/../../../${subdir}") + get_target_property(framework_build_dir liblldb LIBRARY_OUTPUT_DIRECTORY) + set(copy_dest "${framework_build_dir}/${subdir}") # Copy into the given subdirectory for testing. add_custom_command(TARGET ${name} POST_BUILD |