summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2022-09-09 08:29:48 (GMT)
committerCraig Scott <craig.scott@crascit.com>2022-09-09 10:08:32 (GMT)
commit629d106c5e3caee76873540ef50885acb82610ee (patch)
tree23488e4946544b5effaa4b8867d4ddb6c80e7182 /Modules
parent9a916eaae3f9ddf668d1c4194b268738b1b18c9b (diff)
downloadCMake-629d106c5e3caee76873540ef50885acb82610ee.zip
CMake-629d106c5e3caee76873540ef50885acb82610ee.tar.gz
CMake-629d106c5e3caee76873540ef50885acb82610ee.tar.bz2
Help: Fix typo in FetchContent example, extras should read extra
Amends 29e31e2825a (Packages: Integrate FetchContent and find_package(), 2022-04-28)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FetchContent.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/FetchContent.cmake b/Modules/FetchContent.cmake
index e490a98..20f0bd2 100644
--- a/Modules/FetchContent.cmake
+++ b/Modules/FetchContent.cmake
@@ -822,7 +822,7 @@ details:
CMake provides a FindGTest module which defines some variables that older
projects may use instead of linking to the imported targets. To support
-those cases, we can provide an extras file. In keeping with the
+those cases, we can provide an extra file. In keeping with the
"first to define, wins" philosophy of ``FetchContent``, we only write out
that file if something else hasn't already done so.
@@ -830,9 +830,9 @@ that file if something else hasn't already done so.
FetchContent_MakeAvailable(googletest)
- if(NOT EXISTS ${CMAKE_FIND_PACKAGE_REDIRECTS_DIR}/googletest-extras.cmake AND
- NOT EXISTS ${CMAKE_FIND_PACKAGE_REDIRECTS_DIR}/googletestExtras.cmake)
- file(WRITE ${CMAKE_FIND_PACKAGE_REDIRECTS_DIR}/googletest-extras.cmake
+ if(NOT EXISTS ${CMAKE_FIND_PACKAGE_REDIRECTS_DIR}/googletest-extra.cmake AND
+ NOT EXISTS ${CMAKE_FIND_PACKAGE_REDIRECTS_DIR}/googletestExtra.cmake)
+ file(WRITE ${CMAKE_FIND_PACKAGE_REDIRECTS_DIR}/googletest-extra.cmake
[=[
if("${GTEST_LIBRARIES}" STREQUAL "" AND TARGET GTest::gtest)
set(GTEST_LIBRARIES GTest::gtest)