summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpigeon <fnoegip@gmail.com>2022-06-21 15:55:57 (GMT)
committerBrad King <brad.king@kitware.com>2022-06-21 16:31:00 (GMT)
commit641d97e03f01532ab11dfc3b861c6d875201a283 (patch)
treecce1465fdf457542db741669513d64fa45f5c10e
parent27874273061fa74d3bcc860769fb1eae42eba0fe (diff)
downloadCMake-641d97e03f01532ab11dfc3b861c6d875201a283.zip
CMake-641d97e03f01532ab11dfc3b861c6d875201a283.tar.gz
CMake-641d97e03f01532ab11dfc3b861c6d875201a283.tar.bz2
FetchContent: Fix example code in documentation
-rw-r--r--Modules/FetchContent.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/FetchContent.cmake b/Modules/FetchContent.cmake
index d0a90f4..c4c3a93 100644
--- a/Modules/FetchContent.cmake
+++ b/Modules/FetchContent.cmake
@@ -831,7 +831,7 @@ that file if something else hasn't already done so.
if("${GTEST_BOTH_LIBRARIES}" STREQUAL "")
set(GTEST_BOTH_LIBRARIES ${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES})
endif()
- ]=]
+ ]=])
endif()
Projects will also likely be using ``find_package(GTest)`` rather than
@@ -850,7 +850,7 @@ a typical ``find_package(GTest)`` call.
[=[
include(CMakeFindDependencyMacro)
find_dependency(googletest)
- ]=]
+ ]=])
endif()
if(NOT EXISTS ${CMAKE_FIND_PACKAGE_REDIRECTS_DIR}/gtest-config-version.cmake AND
@@ -861,7 +861,7 @@ a typical ``find_package(GTest)`` call.
if(NOT PACKAGE_VERSION_COMPATIBLE)
include(${CMAKE_FIND_PACKAGE_REDIRECTS_DIR}/googletestConfigVersion.cmake OPTIONAL)
endif()
- ]=]
+ ]=])
endif()
Overriding Where To Find CMakeLists.txt