Hello,<div><br></div><div>I am having trouble with ExternalProject_Add when downloading a .exe. Lines 1308-1310 in ExternalProject.cmake seem to be the problem:</div><div><br></div><div><div>        if(NOT &quot;${fname}&quot; MATCHES &quot;(\\.|=)(bz2|tar|tgz|tar\\.gz|zip)$&quot;)</div>

<div>          message(FATAL_ERROR &quot;Could not extract tarball filename from url:\n  ${url}&quot;)</div><div>        endif()</div><div><br></div><div>I guess the logic behind allowing only tar, bzip, gzip and zip files is those are the formats libarchive understands, isn&#39;t it? But what if I want to download a self-extracting .exe on Windows and use CONFIGURE_COMMAND to trigger the self-extraction? As that seems flaky to detect from libarchive, what about adding a new EXTRACT_COMMAND and not checking the extension of the downloaded file if EXTRACT_COMMAND is present? (if the answer is &quot;we like it&quot;, I&#39;ll move forward and implement it)</div>

<div><br></div><div>Also, how do I get the name of the downloaded file from my CMakeLists.txt? DOWNLOAD_NAME seems to be the only alternative and I don&#39;t really like it :-?</div><div><br></div><div>Thank you</div><div>

<br></div>-- <br>Pau Garcia i Quiles<br><a href="http://www.elpauer.org">http://www.elpauer.org</a><br>(Due to my workload, I may need 10 days to answer)
</div>