View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011433CMakeCMakepublic2010-11-10 06:162010-12-08 08:20
ReporterRolf Eike Beer 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionwon't fix 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionCMake 2.8.4Fixed in VersionCMake 2.8.4 
Summary0011433: Add download command to CMake command mode
DescriptionI often come to system where a trivial download from command line is not possible (like Windows, QNX) without installing additional software. Since CMake has the capability to download stuff anyway I would like to see something like

cmake -E download http://url [^] [ftp://url [^]]
TagsNo tags attached.
Attached Files

 Relationships
related to 0011286closedDavid Cole REQ: Upload packages to webserver 

  Notes
(0023127)
Eric NOULARD (developer)
2010-11-10 06:56

Hi Rolf,

You can already do that with a small CMake script with the

file(DOWNLOAD url file [TIMEOUT timeout] [STATUS status] [LOG log])

command and cmake -P dlscript.cmake

that said if DOWNLOAD was to be added to -E command then UPLOAD should be
added too
file(UPLOAD file url TIMEOUT timeout] [STATUS status] [LOG log])
should be added as well but I think there is a bug report about that
I'll check and link those two.
(0023129)
David Cole (manager)
2010-11-10 07:47

How about (shell escaping left to the actual user on an actual system he cares about):

echo file(DOWNLOAD http://www.site.com?file=blah.txt [^] blah.txt) >/tmp/download.cmake && cmake -P /tmp/download.cmake

Or a bash/cmd script that does the equivalent?

Do we really need a bunch of new argument parsing code for the command line interpreter when we've already got it built into the file command?
(0023792)
David Cole (manager)
2010-12-08 08:20

This would add unnecessary complexity for very little benefit. We're not going to add -E download to cmake.

See other notes for details.

 Issue History
Date Modified Username Field Change
2010-11-10 06:16 Rolf Eike Beer New Issue
2010-11-10 06:56 Eric NOULARD Note Added: 0023127
2010-11-10 06:57 Eric NOULARD Relationship added related to 0011286
2010-11-10 07:47 David Cole Note Added: 0023129
2010-12-08 08:20 David Cole Note Added: 0023792
2010-12-08 08:20 David Cole Status new => closed
2010-12-08 08:20 David Cole Resolution open => won't fix
2010-12-08 08:20 David Cole Fixed in Version => CMake 2.8.4
2010-12-08 08:20 David Cole Target Version => CMake 2.8.4


Copyright © 2000 - 2018 MantisBT Team