Have llvm-config --cppflags print correct flags when in CMake build directory
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 28 Oct 2011 01:02:16 +0000 (01:02 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 28 Oct 2011 01:02:16 +0000 (01:02 +0000)
commitee826c8d9cab9e735b9b38acc5aab620fbc50afe
treefa604134e158dd33d53afa4dfd9dd73f982621cf
parentc73d73eb881ebe7493e934c00ca1c474ffd0ed2d
Have llvm-config --cppflags print correct flags when in CMake build directory

Previously, if invoked from a CMake build directory, 'llvm-config
--cppflags' and friends would only print a -I flag for the build
directory's header search path, because it would assume that it was
already installed, not recognising its parent directory as being the
build directory.  Teach llvm-config about CMake build directories
so that it prints a -I for both the source and build directory's
search paths.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143171 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-config/CMakeLists.txt
tools/llvm-config/Makefile
tools/llvm-config/llvm-config.in.in