MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0015244 | CMake | CMake | public | 2014-11-11 19:21 | 2016-06-10 14:31 |
Reporter | Daniele E. Domenichelli | ||||
Assigned To | Kitware Robot | ||||
Priority | low | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0015244: Add "cmake -E patch" command line option and "file(PATCH)" command | ||||
Description | The ExternalProject module accepts a "PATCH_COMMAND" argument to apply a patch to a project. In another scenario, one would like be to able to apply a patch to a downloaded file. Unfortunately neither of these goal can be achieved easily in a portable way. - The "patch" command is usually not available on windows. - "git apply", "hg import", etc work on every platform, but only work for git, mercurial repositories, etc. and don't work for downloaded archives and files. It would be nice to have a command line option like "cmake -E patch" to apply a patch, that accepts the most commonly used options of the "patch" command (at least -p, -l, -R, and -i). This would ensure that the "PATCH_COMMAND" will work on every platform. The "file" command could have a new PATCH argument that accepts(at least) an input file, the working directory, a STRIP argument (-p1), an IGNORE_WHITESPACE, and a REVERSE option. The signature could be something like this: file(PATCH filename working_dir [STRIP levels] [IGNORE_WHITESPACE] [REVERSE]) This could be used to patch a file after downloading it with "file(DOWNLOAD)" | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2014-11-11 19:21 | Daniele E. Domenichelli | New Issue | |||
2014-11-12 01:32 | Rolf Eike Beer | Note Added: 0037189 | |||
2014-11-12 19:36 | Daniele E. Domenichelli | Note Added: 0037202 | |||
2014-11-13 08:55 | Nils Gladitz | Note Added: 0037206 | |||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042665 | |||
2016-06-10 14:29 | Kitware Robot | Status | new => resolved | ||
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|