[PATCH] D94326: [CMake] Fix incorrect rpath for tests if LLVM_LOCAL_RPATH isn't set

Raul Tambre via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 8 11:24:39 PST 2021


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG840a2c978374: [CMake] Fix incorrect rpath for tests if LLVM_LOCAL_RPATH isn't set (authored by tambre).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94326/new/

https://reviews.llvm.org/D94326

Files:
  llvm/cmake/modules/AddLLVM.cmake


Index: llvm/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/cmake/modules/AddLLVM.cmake
+++ llvm/cmake/modules/AddLLVM.cmake
@@ -865,7 +865,7 @@
 
   if(NOT ARG_NO_INSTALL_RPATH)
     llvm_setup_rpath(${name})
-  else()
+  elseif(NOT "${LLVM_LOCAL_RPATH}" STREQUAL "")
     # Enable BUILD_WITH_INSTALL_RPATH unless CMAKE_BUILD_RPATH is set.
     if("${CMAKE_BUILD_RPATH}" STREQUAL "")
       set_property(TARGET ${name} PROPERTY BUILD_WITH_INSTALL_RPATH ON)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94326.315466.patch
Type: text/x-patch
Size: 515 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210108/4fb5ba3a/attachment.bin>


More information about the llvm-commits mailing list