summaryrefslogtreecommitdiffstats
path: root/Modules/FetchContent.cmake
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2022-09-05 12:20:16 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-09-05 12:20:24 (GMT)
commitc14494f19f6dbb37f9eeeed1b7cbad66decdd758 (patch)
tree60c931be30c5f52bb9e6fe56d57193a34d33395c /Modules/FetchContent.cmake
parent14af5fcbc33b0e4eb741eb40a80f69afb242b2a0 (diff)
parentdaa2a6cda6c462c2867e661f231fce667e8946ba (diff)
downloadCMake-c14494f19f6dbb37f9eeeed1b7cbad66decdd758.zip
CMake-c14494f19f6dbb37f9eeeed1b7cbad66decdd758.tar.gz
CMake-c14494f19f6dbb37f9eeeed1b7cbad66decdd758.tar.bz2
Merge topic 'doc-fetchcontent-gtest-example'
daa2a6cda6 Help: Fix wrong casing of GTest in FetchContent integration example Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7644
Diffstat (limited to 'Modules/FetchContent.cmake')
-rw-r--r--Modules/FetchContent.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FetchContent.cmake b/Modules/FetchContent.cmake
index 9747cd9..3501317 100644
--- a/Modules/FetchContent.cmake
+++ b/Modules/FetchContent.cmake
@@ -772,7 +772,7 @@ to the declared details and leaving
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG 703bd9caab50b139428cea1aaff9974ebee5742e # release-1.10.0
- FIND_PACKAGE_ARGS NAMES gtest
+ FIND_PACKAGE_ARGS NAMES GTest
)
FetchContent_Declare(
Catch2
@@ -786,7 +786,7 @@ to the declared details and leaving
For ``Catch2``, no additional arguments to :command:`find_package` are needed,
so no additional arguments are provided after the ``FIND_PACKAGE_ARGS``
-keyword. For ``googletest``, its package is more commonly called ``gtest``,
+keyword. For ``googletest``, its package is more commonly called ``GTest``,
so arguments are added to support it being found by that name.
If the user wanted to disable :command:`FetchContent_MakeAvailable` from