Index: cmake/modules/AddLLDB.cmake =================================================================== --- cmake/modules/AddLLDB.cmake +++ cmake/modules/AddLLDB.cmake @@ -175,9 +175,6 @@ # added as an extra RPATH below. # function(lldb_setup_framework_rpaths_in_tool name) - # In the build-tree, we know the exact path to the binary in the framework. - set(rpath_build_tree "$") - # The installed framework is relocatable and can be in different locations. set(rpaths_install_tree "@loader_path/../../../SharedFrameworks") list(APPEND rpaths_install_tree "@loader_path/../../System/Library/PrivateFrameworks") @@ -191,7 +188,7 @@ # the default settings from llvm_setup_rpath(). set_target_properties(${name} PROPERTIES BUILD_WITH_INSTALL_RPATH OFF - BUILD_RPATH "${rpath_build_tree}" + BUILD_RPATH $ INSTALL_RPATH "${rpaths_install_tree}" )