[CMake] Make it possible to set the RPATH in add_lldb_exectable.
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 17 Oct 2019 00:50:39 +0000 (00:50 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 17 Oct 2019 00:50:39 +0000 (00:50 +0000)
commiteb1bbcec08d2d22bbcc55be6cb05476b617c96cf
tree9582386b2563d8f39ab237b47b16c586800ed35e
parent329e748c8c3b0fd3942cb1dafa9e4d0bb0aea8a4
[CMake] Make it possible to set the RPATH in add_lldb_exectable.

Make it possible to pass a build and install RPATH to
add_lldb_executable instead of having to call lldb_setup_rpaths after
the fact.

This fixes a real issue where setting an install RPATH with
lldb_setup_rpaths would only affect the symroot installation component.
Given that lldb_setup_rpaths sets a target property I would expect this
to be orthogonal to installation components. Regardless, it makes sense
to integrate this functionality in add_lldb_exectable.

llvm-svn: 375068
lldb/cmake/modules/AddLLDB.cmake