[cmake-developers] [CMake 0013020]: Custom commands after generation

Mantis Bug Tracker mantis at public.kitware.com
Tue Mar 6 10:44:53 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13020 
====================================================================== 
Reported By:                Petr Kmoch
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13020
Category:                   CMake
Reproducibility:            N/A
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-03-06 16:44 CET
Last Modified:              2012-03-06 16:44 CET
====================================================================== 
Summary:                    Custom commands after generation
Description: 
In 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?
<pre>add_custom_command(POST_GENERATION
COMMAND command1 [ARGS] [args1...]
[COMMAND command2 [ARGS] [args2...] ...]
[WORKING_DIRECTORY dir]
[VERBATIM])</pre>
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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-03-06 16:44 Petr Kmoch     New Issue                                    
======================================================================




More information about the cmake-developers mailing list