[lldb/CMake] Set both the BUILD and INSTALL RPATH on macOS (2/2)
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 29 May 2020 17:26:38 +0000 (10:26 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 29 May 2020 19:22:51 +0000 (12:22 -0700)
This is also needed for lldb-test.

lldb/tools/lldb-test/CMakeLists.txt

index 60b4a7c..2edbd8e 100644 (file)
@@ -26,6 +26,7 @@ add_lldb_tool(lldb-test
 
 if(PYTHON_RPATH)
   set_property(TARGET lldb-test APPEND PROPERTY INSTALL_RPATH "${PYTHON_RPATH}")
+  set_property(TARGET lldb-test APPEND PROPERTY BUILD_RPATH   "${PYTHON_RPATH}")
 endif()
 
 target_include_directories(lldb-test PRIVATE ${LLDB_SOURCE_DIR}/source)