[CMake] Make LLVMConfig.cmake variable names match in-tree names
authorChris Bieneman <beanz@apple.com>
Mon, 29 Aug 2016 21:26:32 +0000 (21:26 +0000)
committerChris Bieneman <beanz@apple.com>
Mon, 29 Aug 2016 21:26:32 +0000 (21:26 +0000)
commit5349efc6b7b9512d96458118296ec786d9193de1
treea8018e4796454c4778e4eb991242bd2d90d2fad0
parent8fcff934bae29c54d68bc94134136d9e8fb9a208
[CMake] Make LLVMConfig.cmake variable names match in-tree names

With the runtimes build we're trying to use LLVMConfig.cmake as a way of providing LLVM_* variables that are needed to behave as if the project is building in tree. To make this work we need to rename two variables by dropping the "S" from the end. This makes the variables match the in-tree names.

This renames:
LLVM_INCLUDE_DIRS -> LLVM_INCLUDE_DIR
LLVM_LIBRARY_DIRS -> LLVM_LIBRARY_DIR

The versions ending in S are not used in-tree anywhere. This also cleans up LLVM_LIBRARY_DIR being set to the same value with and without the "S".

llvm-svn: 280013
llvm/cmake/modules/LLVMConfig.cmake.in
llvm/docs/CMake.rst