summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2022-04-20 11:13:43 +0300
committerMartin Storsjö <martin@martin.st>2022-04-22 17:28:24 +0300
commit3f9ebc0cc824d407b43e0866c710ee1c98e8283b (patch)
treedddc4c684bb828c3499572623b42fef6a9983b20 /cmake
parent237c4bada957fedfbdd3999b14e3ae538069e4b4 (diff)
downloadllvm-3f9ebc0cc824d407b43e0866c710ee1c98e8283b.tar.gz
[doc] [cmake] Fix a typo in examples for the cmake directory docs. NFC.
The previous case was a tautology - this is probably what was intended. Differential Revision: https://reviews.llvm.org/D124072
Diffstat (limited to 'cmake')
-rw-r--r--cmake/README.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/README.rst b/cmake/README.rst
index e28409a0fc6d..eb6ee30ea0d1 100644
--- a/cmake/README.rst
+++ b/cmake/README.rst
@@ -29,7 +29,7 @@ For tools, please do:
.. code-block:: cmake
if(NOT DEFINED LLVM_COMMON_CMAKE_UTILS)
- set(LLVM_COMMON_CMAKE_UTILS ${LLVM_COMMON_CMAKE_UTILS}/../cmake)
+ set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
endif()
# Add path for custom modules.
@@ -51,7 +51,7 @@ For runtime libs, we skip the ``if(NOT DEFINED`` part:
.. code-block:: cmake
- set(LLVM_COMMON_CMAKE_UTILS ${LLVM_COMMON_CMAKE_UTILS}/../cmake)
+ set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
... # same as before