View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015658CMakeCMakepublic2015-07-21 11:192016-01-04 11:51
ReporterBen Boeckel 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionsuspended 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0015658: Allow generator expressions in add_custom_command (and add_custom_target)
DescriptionNow 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).
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0039160)
Brad King (manager)
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 (developer)
2015-07-21 12:54

Hmm. I will have to investigate why naked genex strings get dumped out into Ninja then.
(0039168)
Brad King (manager)
2015-07-23 14:46

See 0013840.
(0040097)
Robert Maynard (manager)
2016-01-04 11:51

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2015-07-21 11:19 Ben Boeckel New Issue
2015-07-21 11:25 Brad King Note Added: 0039160
2015-07-21 12:54 Ben Boeckel Note Added: 0039161
2015-07-23 14:46 Brad King Note Added: 0039168
2015-07-23 14:46 Brad King Status new => resolved
2015-07-23 14:46 Brad King Resolution open => suspended
2015-07-23 14:46 Brad King Target Version CMake 3.4 =>
2016-01-04 11:51 Robert Maynard Note Added: 0040097
2016-01-04 11:51 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team