summaryrefslogtreecommitdiff
path: root/Modules/FetchContent.cmake
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2022-06-06 20:52:31 +1000
committerCraig Scott <craig.scott@crascit.com>2022-06-09 22:55:11 +1000
commit92e93f5c9e309d0e2f9c119e9aa9bbff477602e2 (patch)
treeab790ef749ec13cb88ce90543eca6b765172128c /Modules/FetchContent.cmake
parent007181a16584c02419d77b7fd258b170ed9ea2fa (diff)
downloadcmake-92e93f5c9e309d0e2f9c119e9aa9bbff477602e2.tar.gz
Help: Overhaul and expand the Using Dependencies Guide
The guide previously only focused on the find_package() command, with a bias towards libraries. FetchContent was not mentioned at all. Reorganise and update the existing content. Add new sections to cover providing dependencies with FetchContent and dependency providers. Improve discoverability of the guide by mentioning it at the beginning of the find_package(), FetchContent and dependency provider docs.
Diffstat (limited to 'Modules/FetchContent.cmake')
-rw-r--r--Modules/FetchContent.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/Modules/FetchContent.cmake b/Modules/FetchContent.cmake
index 83aafa809e..75a161a1ea 100644
--- a/Modules/FetchContent.cmake
+++ b/Modules/FetchContent.cmake
@@ -11,6 +11,12 @@ FetchContent
.. contents::
+.. note:: The :guide:`Using Dependencies Guide` provides a high-level
+ introduction to this general topic. It provides a broader overview of
+ where the ``FetchContent`` module fits into the bigger picture,
+ including its relationship to the :command:`find_package` command.
+ The guide is recommended pre-reading before moving on to the details below.
+
Overview
^^^^^^^^
@@ -720,7 +726,7 @@ frameworks are available to the main build:
# Catch2 will be available to the rest of the build
FetchContent_MakeAvailable(googletest Catch2)
-.. _FetchContent-find_package-integration:
+.. _FetchContent-find_package-integration-examples:
Integrating With find_package()
"""""""""""""""""""""""""""""""