]> granicus.if.org Git - llvm/commit
[llvm-config] Add --cmakedir to obtain CMake module location
authorMichal Gorny <mgorny@gentoo.org>
Fri, 6 Jan 2017 08:23:33 +0000 (08:23 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Fri, 6 Jan 2017 08:23:33 +0000 (08:23 +0000)
commit7b7a32b4ffbcfd05c30603afe2dbd96ab6c7881e
tree6d2aa9628386bc4c4575d3ad35ee25f19ec70ecb
parent5d6908ca72393fc76cf19768b9f1952867c8564b
[llvm-config] Add --cmakedir to obtain CMake module location

Add a --cmakedir option to llvm-config that returns the correct path to
built/installed CMake modules (i.e. lib/cmake/llvm). This is mostly
intended as a convenience option for stand-alone builds of other LLVM
projects that frequently reconstruct LLVM_CMAKE_PATH after querying
llvm-config.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291218 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-config/llvm-config.cpp