[all-commits] [llvm/llvm-project] feeff8: [llvm] Use `GNUInstallDirs` to support custom inst...

John Ericson via All-commits all-commits at lists.llvm.org
Fri Jan 7 16:47:44 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: feeff8a37c35631f2cf15ca3639958ed1b179d4d
  Author: John Ericson <John.Ericson at Obsidian.Systems>
  Date:   2022-01-08 (Sat, 08 Jan 2022)

  Changed paths:
    M llvm/CMakeLists.txt
    M llvm/cmake/modules/AddLLVM.cmake
    M llvm/cmake/modules/AddSphinxTarget.cmake
    M llvm/cmake/modules/CMakeLists.txt
    M llvm/cmake/modules/LLVMInstallSymlink.cmake
    M llvm/docs/CMake.rst
    M llvm/examples/Bye/CMakeLists.txt
    M llvm/tools/llvm-config/BuildVariables.inc.in
    M llvm/tools/llvm-config/llvm-config.cpp
    M llvm/tools/lto/CMakeLists.txt
    M llvm/tools/opt-viewer/CMakeLists.txt
    M llvm/tools/remarks-shlib/CMakeLists.txt

  Log Message:
  [llvm] Use `GNUInstallDirs` to support custom installation dirs

This is the patch for LLVM proper in my series for adding GNUInstallDirs support in all project.


Create a new `CACHE STRING` variable, `LLVM_EXAMPLES_INSTALL_DIR`, to control where the examples are installed on analogy with the other variables.


This patch supersedes D28234, which tried to do the same thing but hand-rolled without GNUInstallDirs.

This patch nearly reverts commit 3 0fc88bf1dc15a72e2d9809d28019d386b7a7cc0, which was a revert of a prior attempt."

(I had to add a space here or else Phabricator detects a reference cycle and won't let me do the form submit.)

Reviewed By: compnerd

Differential Revision: https://reviews.llvm.org/D100810

More information about the All-commits mailing list