[PATCH] D136573: [llvm] [cmake] Silence GNUInstallDirs warning in LLVMInstallSymlink
Michał Górny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 23 22:04:01 PDT 2022
mgorny created this revision.
mgorny added reviewers: Ericson2314, sebastian-ne, MaskRay, thesamesam.
Herald added a subscriber: StephenFan.
Herald added a project: All.
mgorny requested review of this revision.
Herald added a project: LLVM.
Set a dummy CMAKE_INSTALL_LIBDIR in order to silence the following CMake
warning when executing LLVMInstallSymlink.cmake script:
CMake Warning (dev) at /usr/share/cmake/Modules/GNUInstallDirs.cmake:243 (message):
Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
target architecture is known. Please enable at least one language before
including GNUInstallDirs.
Call Stack (most recent call first):
/usr/lib/llvm/16/lib64/cmake/llvm/LLVMInstallSymlink.cmake:5 (include)
tools/lld/cmake_install.cmake:66 (include)
cmake_install.cmake:52 (include)
https://reviews.llvm.org/D136573
Files:
llvm/cmake/modules/LLVMInstallSymlink.cmake
Index: llvm/cmake/modules/LLVMInstallSymlink.cmake
===================================================================
--- llvm/cmake/modules/LLVMInstallSymlink.cmake
+++ llvm/cmake/modules/LLVMInstallSymlink.cmake
@@ -2,6 +2,9 @@
# DESTDIR environment variable may be unset at configuration time.
# See PR8397.
+# Set to an arbitrary directory to silence GNUInstallDirs warnings
+# regarding being unable to determine libdir.
+set(CMAKE_INSTALL_LIBDIR "lib")
include(GNUInstallDirs)
function(install_symlink name target outdir)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136573.470048.patch
Type: text/x-patch
Size: 537 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221024/9cbb90b9/attachment.bin>
More information about the llvm-commits
mailing list