MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0003604 | CMake | CMake | public | 2006-08-11 16:30 | 2016-06-10 14:30 |
| Reporter | Alex Neundorf | ||||
| Assigned To | Bill Hoffman | ||||
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0003604: make it possible to use cmake code in add_custom_command() and add_custom_target() | ||||
| Description | Hi, for several things it would be easier if it would be possible to execute cmake code at build time without having to write a second cmake file and execute this using add_custom_command/target and cmake -P. This could look like: add_custom_target(man CODE " foreach(file a.txt b.txt c.txt) exec_program(makeman ${file} ${file}.man endforeach(file) ") Or add_custom_command(OUTPUT blah.h CODE " FILE(WRITE blah.h "This file was generated") ") I guess this could be implemented by generating cmake files from the given code and execute them using cmake -P at build time. Alex | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2016-06-10 14:27 | Kitware Robot | Note Added: 0041317 | |||
| 2016-06-10 14:27 | Kitware Robot | Status | assigned => resolved | ||
| 2016-06-10 14:27 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:30 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||