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 "${fname}" MATCHES "(\\.|=)(bz2|tar|tgz|tar\\.gz|zip)$")</div>
<div> message(FATAL_ERROR "Could not extract tarball filename from url:\n ${url}")</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'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 "we like it", I'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'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>