[LLVMdev] llvm trunk build failed in cmake_install.cmake on ARM platform

Brad King brad.king at kitware.com
Fri Feb 14 12:30:04 PST 2014


On 2/14/2014 3:01 PM, Rafael EspĂ­ndola wrote:
> The point is that it is unnecessary for us. We can always use $ORIGIN.

Okay.  Your proposed patch sets rpath flags manually.  You can still
use CMake's infrastructure to do it:

  set(CMAKE_INSTALL_RPATH "\$ORIGIN/../lib")
  set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)

CMake will link directly with this RPATH and add the appropriate
flags on each platform.

-Brad



More information about the llvm-dev mailing list