[ExternalProject] Using "DOWNLOAD_NO_EXTRACT 1" together with "LOG_DOWNLOAD 1" results in error
In ExternalProject_Add, setting both DOWNLOAD_NO_EXTRACT
and LOG_DOWNLOAD
(to 1) results in an error when execute_process
tries to execute the empty extract command.
The following code should reproduce the issue (tested with 3.7.1). A CMakeLists.txt file is attached.
include("ExternalProject")
ExternalProject_Add(
error_example
URL https://gitlab.kitware.com/cmake/cmake/repository/archive.tar.gz?ref=master
DOWNLOAD_NO_EXTRACT 1
BUILD_COMMAND ""
INSTALL_COMMAND ""
LOG_DOWNLOAD 1
)
Resulting error message (in the created log file):
CMake Error at error_example-stamp/error_example-download--impl.cmake:23 (execute_process): execute_process given COMMAND argument with no value.CMakeLists.txt