[CMake] Make CMAKE_INSTALL_RPATH work again
authorJohn Brawn <john.brawn@arm.com>
Thu, 3 Nov 2016 13:55:04 +0000 (13:55 +0000)
committerJohn Brawn <john.brawn@arm.com>
Thu, 3 Nov 2016 13:55:04 +0000 (13:55 +0000)
commitec1bce853c8fd974bd1efc258dafc11b9500ab24
treec2d28f5ca71ac6381ecffa93cf2c5eed8e6dffec
parent89f12c0c50dc6254b9df5a09e7cc116eddc4af86
[CMake] Make CMAKE_INSTALL_RPATH work again

r285714 made it so that when CMAKE_INSTALL_RPATH is set _install_rpath is not
set, but that means INSTALL_RPATH gets set to an empty string which isn't what
we want. Fix this by setting INSTALL_RPATH only when _install_rpath is set.

llvm-svn: 285908
llvm/cmake/modules/AddLLVM.cmake