MantisBT - CMake
View Issue Details
0015389CMakeCMakepublic2015-02-04 10:202015-07-08 08:57
Sascha Kratky 
 
normaltextalways
closedfixed 
Apple MacOS X10.4.10
CMake 3.0.2 
CMake 3.1 
0015389: file GENERATE does not support generator expression for paramter INPUT
The documentation of the file GENERATE command states that the <condition>, <output_file> and <input_file> parameters may also contain generator expressions. This is incorrect. Only the <condition> and <output_file> may contain generator expressions. See cmFileCommand.cxx:3402.
No tags attached.
Issue History
2015-02-04 10:20Sascha KratkyNew Issue
2015-02-04 11:29Brad KingNote Added: 0037903
2015-02-04 11:30Brad KingSeveritymajor => text
2015-02-04 11:30Brad KingStatusnew => resolved
2015-02-04 11:30Brad KingResolutionopen => fixed
2015-02-04 11:30Brad KingProduct VersionCMake 3.1.1 => CMake 3.0.2
2015-02-04 11:30Brad KingFixed in Version => CMake 3.1
2015-02-04 12:39Sascha KratkyNote Added: 0037905
2015-07-08 08:57Robert MaynardNote Added: 0039041
2015-07-08 08:57Robert MaynardStatusresolved => closed

Notes
(0037903)
Brad King   
2015-02-04 11:29   
What version of the documentation are you reading? The CMake 3.1 documentation:

 http://www.cmake.org/cmake/help/v3.1/command/file.html [^]

does not say that. It says generator expressions may be used for the CONDITION and OUTPUT options as well as the actual content of the input.
(0037905)
Sascha Kratky   
2015-02-04 12:39   
My bad. I was indeed browsing the 3.0 version documentation.
(0039041)
Robert Maynard   
2015-07-08 08:57   
Closing resolved issues that have not been updated in more than 4 months.