| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0012083 | CMake | CMake | public | 2011-04-14 06:46 | 2015-07-08 08:57 | ||||
| Reporter | Benjamin Schindler | ||||||||
| Assigned To | Stephen Kelly | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | Gentoo | OS | Linux | OS Version | |||||
| Product Version | CMake 2.8.4 | ||||||||
| Target Version | Fixed in Version | CMake 3.2 | |||||||
| Summary | 0012083: configure_file is not WARNING about ill-named parameter COPYONLY | ||||||||
| Description | I'm trying to copy the attached file using configure_file, but it gets corrupted. The resulting files just has 9 bytes or so | ||||||||
| Steps To Reproduce | Run CONFIGURE_FILE(${file} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/assets/${file} COPY_ONLY) on the attached file | ||||||||
| Additional Information | tested on linux and windows 7 - same behaviour | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | ![]() | ||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0026177) Eric NOULARD (developer) 2011-04-14 12:35 |
This is due to a typo in your script: COPY_ONLY should be COPYONLY The trouble is CMake is silently ignoring the misspelled option. Try the attach cmake script using. cmake -P configure_it.cmake |
|
(0026182) Benjamin Schindler (reporter) 2011-04-14 16:30 |
Confirmed. This is not the first time such bugs occur to me... it would be great if cmake could be made more robust against such errors... |
|
(0026208) Eric NOULARD (developer) 2011-04-17 16:00 |
I am backlogging this one, unless somebody wants to work on it... |
|
(0038087) Stephen Kelly (developer) 2015-02-26 15:30 |
Fixed: http://www.cmake.org/gitweb?p=cmake.git;a=commitdiff;h=1531df2b [^] configure_file: Warn about unknown arguments |
|
(0039076) Robert Maynard (manager) 2015-07-08 08:57 |
Closing resolved issues that have not been updated in more than 4 months. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2011-04-14 06:46 | Benjamin Schindler | New Issue | |
| 2011-04-14 06:46 | Benjamin Schindler | File Added: Font.bmp | |
| 2011-04-14 12:33 | Eric NOULARD | Assigned To | => Eric NOULARD |
| 2011-04-14 12:33 | Eric NOULARD | Status | new => assigned |
| 2011-04-14 12:35 | Eric NOULARD | Note Added: 0026177 | |
| 2011-04-14 12:35 | Eric NOULARD | File Added: configure_it.cmake | |
| 2011-04-14 12:36 | Eric NOULARD | Priority | urgent => normal |
| 2011-04-14 12:36 | Eric NOULARD | Severity | major => minor |
| 2011-04-14 16:30 | Benjamin Schindler | Note Added: 0026182 | |
| 2011-04-17 15:59 | Eric NOULARD | Assigned To | Eric NOULARD => |
| 2011-04-17 15:59 | Eric NOULARD | Status | assigned => backlog |
| 2011-04-17 15:59 | Eric NOULARD | Summary | configure_file destroys bmp => configure_file is not WARNING about ill-named parameter COPYONLY |
| 2011-04-17 16:00 | Eric NOULARD | Note Added: 0026208 | |
| 2015-02-26 15:30 | Stephen Kelly | Note Added: 0038087 | |
| 2015-02-26 15:30 | Stephen Kelly | Status | backlog => resolved |
| 2015-02-26 15:30 | Stephen Kelly | Fixed in Version | => CMake 3.2 |
| 2015-02-26 15:30 | Stephen Kelly | Resolution | open => fixed |
| 2015-02-26 15:30 | Stephen Kelly | Assigned To | => Stephen Kelly |
| 2015-07-08 08:57 | Robert Maynard | Note Added: 0039076 | |
| 2015-07-08 08:57 | Robert Maynard | Status | resolved => closed |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |