View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013020CMakeCMakepublic2012-03-06 10:442012-09-03 16:00
ReporterPetr Kmoch 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityN/A
StatusclosedResolutionwon't fix 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0013020: Custom commands after generation
DescriptionIn multiple situations, I have run into a need to perform some processing after CMake finishes generating the buildsystem (e.g. need to post-process the generated .sln file). Could perhaps add_custom_command() be expanded to allow a third form, like this?
add_custom_command(POST_GENERATION
COMMAND command1 [ARGS] [args1...]
[COMMAND command2 [ARGS] [args2...] ...]
[WORKING_DIRECTORY dir]
[VERBATIM])

It's not enough to have a wrapper script around CMake, as this doesn't get run when CMake re-runs automatically during build because a CMakeList changed.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0028845)
Petr Kmoch (reporter)
2012-03-06 10:56

I'll be happy to try to create a patch, if this doesn't get backlogged.
(0028878)
Brad King (manager)
2012-03-09 09:26

I don't think post-generation tweaks can be made in a forward-compatible way. If CMake changes the way it generates the file then the tweaks on existing projects may break. That would be too constraining to allow CMake to evolve.

I'd rather teach CMake to generate the file directly with what you need. It looks like 0013021 would be a start to that.
(0030830)
David Cole (manager)
2012-09-03 16:00

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

 Issue History
Date Modified Username Field Change
2012-03-06 10:44 Petr Kmoch New Issue
2012-03-06 10:56 Petr Kmoch Note Added: 0028845
2012-03-09 09:26 Brad King Note Added: 0028878
2012-03-09 09:26 Brad King Status new => resolved
2012-03-09 09:26 Brad King Resolution open => won't fix
2012-03-09 09:26 Brad King Assigned To => Brad King
2012-09-03 16:00 David Cole Note Added: 0030830
2012-09-03 16:00 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team