Cmake No Download Info Given For [top] May 2026

include(ExternalProject) ExternalProject_Add(googletest GIT_REPOSITORY https://github.com GIT_TAG release-1.12.1 SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-src" BINARY_DIR "${CMAKE_BINARY_DIR}/googletest-build" INSTALL_COMMAND "" ) Use code with caution.

Crucially, you must also tell CMake to skip the download step by setting DOWNLOAD_COMMAND to an empty string: cmake no download info given for

ExternalProject_Add(my_lib URL https://example.com URL_HASH SHA256=your_hash_here ) Use code with caution. 2. Point to a Local Source Directory the error will resolve.

By explicitly defining either a GIT_REPOSITORY , a URL , or a SOURCE_DIR with an empty DOWNLOAD_COMMAND , the error will resolve. cmake no download info given for