Skip to content

Commit

Permalink
[doc] [cmake] Fix a typo in examples for the cmake directory docs. NFC.
Browse files Browse the repository at this point in the history
The previous case was a tautology - this is probably what was intended.

Differential Revision: https://reviews.llvm.org/D124072
  • Loading branch information
mstorsjo committed Apr 22, 2022
1 parent 237c4ba commit 3f9ebc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 3f9ebc0

Please sign in to comment.