From 641d97e03f01532ab11dfc3b861c6d875201a283 Mon Sep 17 00:00:00 2001 From: pigeon Date: Tue, 21 Jun 2022 11:55:57 -0400 Subject: FetchContent: Fix example code in documentation --- Modules/FetchContent.cmake | 6 +++--- 1 file 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 -- cgit v0.12