diff --git a/cmake/README.rst b/cmake/README.rst index e28409a0fc6d2b..eb6ee30ea0d17c 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