OSDN Git Service

[lldb/CMake] Set both the BUILD and INSTALL RPATH on macOS
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 28 May 2020 23:03:57 +0000 (16:03 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 28 May 2020 23:04:35 +0000 (16:04 -0700)
This is necessary when building the framework.

lldb/source/API/CMakeLists.txt

index b0ada3e..ce6a7ec 100644 (file)
@@ -123,6 +123,7 @@ endif()
 
 if(PYTHON_RPATH)
   set_property(TARGET liblldb APPEND PROPERTY INSTALL_RPATH "${PYTHON_RPATH}")
+  set_property(TARGET liblldb APPEND PROPERTY BUILD_RPATH   "${PYTHON_RPATH}")
 endif()
 
 if (MSVC)