MantisBT - CMake
View Issue Details
0015658CMakeCMakepublic2015-07-21 11:192016-01-04 11:51
Ben Boeckel 
 
normalminorhave not tried
closedsuspended 
 
 
0015658: Allow generator expressions in add_custom_command (and add_custom_target)
Now that LOCATION is disallowed, using a target path as an argument to a custom command is not possible without warnings (or making CMP0026 OLD).

At least OUTPUT, COMMAND, MAIN_DEPENDENCY, DEPENDS, WORKING_DIRECTORY, and SOURCES (for a_c_t) should expand generator expressions. Some may already do so via properties being genex-expanded already (just WORKING_DIRECTORY IIRC).
No tags attached.
Issue History
2015-07-21 11:19Ben BoeckelNew Issue
2015-07-21 11:25Brad KingNote Added: 0039160
2015-07-21 12:54Ben BoeckelNote Added: 0039161
2015-07-23 14:46Brad KingNote Added: 0039168
2015-07-23 14:46Brad KingStatusnew => resolved
2015-07-23 14:46Brad KingResolutionopen => suspended
2015-07-23 14:46Brad KingTarget VersionCMake 3.4 =>
2016-01-04 11:51Robert MaynardNote Added: 0040097
2016-01-04 11:51Robert MaynardStatusresolved => closed

Notes
(0039160)
Brad King   
2015-07-21 11:25   
The COMMAND and DEPENDS already support generator expressions and have since the 2.8 era. The TARGET_FILE genex and its variants are very useful with these and were created specifically for the purpose of avoiding use of the LOCATION property.
(0039161)
Ben Boeckel   
2015-07-21 12:54   
Hmm. I will have to investigate why naked genex strings get dumped out into Ninja then.
(0039168)
Brad King   
2015-07-23 14:46   
See 0013840.
(0040097)
Robert Maynard   
2016-01-04 11:51   
Closing resolved issues that have not been updated in more than 4 months.