[ExternalProject] Using "DOWNLOAD_NO_EXTRACT ON" together with "LOG_DOWNLOAD ON" results in error
I am having a similar issue as #16544 (closed) under CMake 3.8.2 when using ExternalProject_Add when using both DOWNLOAD_NO_EXTRACT and LOG_DOWNLOAD.
Include(ExternalProject)
ExternalProject_Add(
catch
PREFIX ${CMAKE_BINARY_DIR}/catch
URL https://github.com/philsquared/Catch/releases/download/v1.9.6/catch.hpp
URL_MD5 6e3c2c7dd06d31ae9112b3816da24712
DOWNLOAD_NO_EXTRACT ON
LOG_DOWNLOAD ON
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
)
The file downloads just fine. However, the following error message comes up:
CMake Error at catch-stamp/catch-download-.cmake:16 (message):
Command failed: 1
'/.../cmake' '-Dmake=' '-Dconfig=' '-P' '/.../catch/src/catch-stamp/catch-download--impl.cmake'
See also
/.../catch/src/catch-stamp/catch-download-*.log
(I replaced the full paths with "...")
Edited by TalLancaster