[PATCH] D101070: [llvm][cmake] Make `llvm_install_symlink` robust to absolute dirs.
John Ericson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 20 18:11:08 PST 2022
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rG58580e922a69: [llvm][cmake] Make `llvm_install_symlink` robust to absolute dirs. (authored by Ericson2314).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101070/new/
https://reviews.llvm.org/D101070
Files:
llvm/cmake/modules/LLVMInstallSymlink.cmake
Index: llvm/cmake/modules/LLVMInstallSymlink.cmake
===================================================================
--- llvm/cmake/modules/LLVMInstallSymlink.cmake
+++ llvm/cmake/modules/LLVMInstallSymlink.cmake
@@ -6,7 +6,8 @@
function(install_symlink name target outdir)
set(DESTDIR $ENV{DESTDIR})
- set(bindir "${DESTDIR}${CMAKE_INSTALL_PREFIX}/${outdir}")
+ GNUInstallDirs_get_absolute_install_dir(bindir "${outdir}" BINDIR)
+ set(bindir "${DESTDIR}${bindir}")
message(STATUS "Creating ${name}")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101070.401836.patch
Type: text/x-patch
Size: 519 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220121/460be46c/attachment.bin>
More information about the cfe-commits
mailing list