cmake fetchcontent_declare(EXCLUDE_FROM_ALL) examples

apache/arrow cpp/cmake_modules/ThirdpartyToolchain.cmake :2335

fetchcontent_declare(googletest
                     # We should not specify "EXCLUDE_FROM_ALL TRUE" here.
                     # Because we install GTest with custom path.
                     # ${FC_DECLARE_COMMON_OPTIONS}
                     URL ${GTEST_SOURCE_URL}
                     URL_HASH "SHA256=${ARROW_GTEST_BUILD_SHA256_CHECKSUM}")

assimp/assimp code/CMakeLists.txt :1031

FetchContent_Declare(
        tinyusdz_repo
        EXCLUDE_FROM_ALL TRUE
        GIT_REPOSITORY "https://github.com/lighttransport/tinyusdz"
        GIT_TAG        ${TINYUSDZ_GIT_TAG}
        PATCH_COMMAND  ${TINYUSDZ_PATCH_CMD}
)

aous72/OpenJPH tests/CMakeLists.txt :4

FetchContent_Declare(
  googletest
  URL https://github.com/google/googletest/archive/refs/tags/v1.14.0.tar.gz
  EXCLUDE_FROM_ALL
)

PDAL/PDAL cmake/gtest.cmake :66

FetchContent_Declare(
  googletest
  URL https://github.com/google/googletest/archive/refs/tags/v${GTEST_VERSION}.zip
  EXCLUDE_FROM_ALL  # ignored before CMake 3.28
)

OSGeo/PROJ test/unit/CMakeLists.txt :66

FetchContent_Declare(
  googletest
  URL https://github.com/google/googletest/archive/refs/tags/v${GTEST_VERSION}.zip
  EXCLUDE_FROM_ALL  # ignored before CMake 3.28
)

eliaskosunen/scnlib cmake/dependencies.cmake :28

FetchContent_Declare(
        googletest
        GIT_REPOSITORY https://github.com/google/googletest.git
        GIT_TAG main
        GIT_SHALLOW TRUE
        SYSTEM
        EXCLUDE_FROM_ALL
)

eliaskosunen/scnlib cmake/dependencies.cmake :130

FetchContent_Declare(
        fast_float
        GIT_REPOSITORY https://github.com/fastfloat/fast_float.git
        GIT_TAG v6.1.6
        GIT_SHALLOW TRUE
        SYSTEM
        EXCLUDE_FROM_ALL
)

apple/swift tools/swift-inspect/CMakeLists.txt :17

FetchContent_Declare(ArgumentParser
  GIT_REPOSITORY  https://github.com/apple/swift-argument-parser
  GIT_TAG         1.5.0
  GIT_SHALLOW     TRUE
  EXCLUDE_FROM_ALL
  FIND_PACKAGE_ARGS CONFIG)