OSDN Git Service

[CMake] Fix llvm_setup_rpath function
authorMandeep Singh Grang <mgrang@codeaurora.org>
Tue, 8 Nov 2016 00:45:05 +0000 (00:45 +0000)
committerMandeep Singh Grang <mgrang@codeaurora.org>
Tue, 8 Nov 2016 00:45:05 +0000 (00:45 +0000)
commite7ffbb5a0ee6a7f07c507dc757cffc9bb57532e3
treec31d2fbe5ad0473d6b37ed402a8fbd96b837584e
parent648fd9b1f660d4d2c9426618e4245fd5e989bb3d
[CMake] Fix llvm_setup_rpath function

Summary:
Set _install_rpath to CMAKE_INSTALL_RPATH if it is defined, so that eventually
INSTALL_RPATH is set to CMAKE_INSTALL_RPATH.
The "if(NOT DEFINED CMAKE_INSTALL_RPATH)" was missing a corresponding else
clause.
This also cleans up the fix made in r285908.

Patch by Azharuddin Mohammed

Reviewers: john.brawn, sgundapa, beanz

Subscribers: chapuni, mgorny, llvm-commits

Differential Revision: https://reviews.llvm.org/D26289

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