summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-09-01 16:43:39 +0000
committerChris Bieneman <beanz@apple.com>2016-09-01 16:43:39 +0000
commitbe765196fa781b81cf61e09f7c0cfc0a829fc867 (patch)
tree6913d10d8fa7f38d583dd8bce96b0f9c0694aa43 /llvm/docs
parentfcb186ca9d4f6196190d22ffff8e3dbd488c30fc (diff)
downloadbcm5719-llvm-be765196fa781b81cf61e09f7c0cfc0a829fc867.tar.gz
bcm5719-llvm-be765196fa781b81cf61e09f7c0cfc0a829fc867.zip
[CMake] Revive LLVM_*_DIRS variables
This is a partial revert of r280013. Brad King pointed out these variable names are matching CMake conventions, so we should preserve them. I've also added a direct mapping of the LLVM_*_DIR variables which we need to make projects support building in and out of tree. llvm-svn: 280380
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/CMake.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/docs/CMake.rst b/llvm/docs/CMake.rst
index cf5d6b55a40..5d57bc98596 100644
--- a/llvm/docs/CMake.rst
+++ b/llvm/docs/CMake.rst
@@ -579,7 +579,7 @@ and uses them to build a simple application ``simple-tool``.
# you will need to enable C++11 support
# for your compiler.
- include_directories(${LLVM_INCLUDE_DIR})
+ include_directories(${LLVM_INCLUDE_DIRS})
add_definitions(${LLVM_DEFINITIONS})
# Now build our tools
@@ -636,8 +636,8 @@ include
This is set to ON if LLVM was built with run time type information (RTTI),
otherwise OFF.
-``LLVM_INCLUDE_DIR``
- Path to the root directory containing LLVM header files.
+``LLVM_INCLUDE_DIRS``
+ A list of include paths to directories containing LLVM header files.
``LLVM_PACKAGE_VERSION``
The LLVM version. This string can be used with CMake conditionals, e.g., ``if
@@ -681,7 +681,7 @@ Contents of ``<project dir>/CMakeLists.txt``:
find_package(LLVM REQUIRED CONFIG)
add_definitions(${LLVM_DEFINITIONS})
- include_directories(${LLVM_INCLUDE_DIR})
+ include_directories(${LLVM_INCLUDE_DIRS})
add_subdirectory(<pass name>)
OpenPOWER on IntegriCloud