]> granicus.if.org Git - llvm/commit
[CMake] Fix rpath construction for out-of-tree builds
authorChris Bieneman <beanz@apple.com>
Tue, 1 Nov 2016 17:44:58 +0000 (17:44 +0000)
committerChris Bieneman <beanz@apple.com>
Tue, 1 Nov 2016 17:44:58 +0000 (17:44 +0000)
commit3a876bdaec4dd8e43d21e0ce369f17db274431c0
treef807b1a19a0f7b9e742ecaeeea29508c12121ad9
parentee817c2c9606519d6d3eb04ef60a64c6b3afed83
[CMake] Fix rpath construction for out-of-tree builds

This patch was produced in conjunction with Michał Górny. It should resolve the issues that were trying to be solved by D25304.

This moves rpath handling into `llvm_add_library` and `add_llvm_executable` so that it is available to all projects using AddLLVM whether built in-tree or out-of-tree.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285714 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt
cmake/modules/AddLLVM.cmake