View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012083CMakeCMakepublic2011-04-14 06:462015-07-08 08:57
ReporterBenjamin Schindler 
Assigned ToStephen Kelly 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformGentoo OSLinuxOS Version
Product VersionCMake 2.8.4 
Target VersionFixed in VersionCMake 3.2 
Summary0012083: configure_file is not WARNING about ill-named parameter COPYONLY
DescriptionI'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 ReproduceRun
CONFIGURE_FILE(${file} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/assets/${file} COPY_ONLY)

on the attached file
Additional Informationtested on linux and windows 7 - same behaviour
TagsNo tags attached.
Attached Files? file icon Font.bmp [^] (66,616 bytes) 2011-04-14 06:46


? file icon configure_it.cmake [^] (92 bytes) 2011-04-14 12:35

 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.

 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


Copyright © 2000 - 2018 MantisBT Team