| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0014080 | CMake | CMake | public | 2013-04-13 05:51 | 2015-08-27 21:32 | ||||
| Reporter | manday | ||||||||
| Assigned To | |||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | closed | Resolution | no change required | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | |||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0014080: add_custom_command does not allow for std* connection | ||||||||
| Description | add_custom_command overlaps with execute_process, however, does not allow for the same operations as execute_process. Most notably, it does not allow for connection of stdin, stdout and stderr (and writing them into files). Bug: add_custom_command should be as least as powerful as execute_process. Note: It would be preferable if execute_process and add_custom_command were unified, as in their redundancy removed. | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0032830) Brad King (manager) 2013-04-15 09:02 |
The two commands have completely different purposes: - execute_process() runs synchronously while CMake configures the project. Connecting stdin/out/err works because there is a parent process to connect. - add_custom_command() adds a rule to be executed by the build system. The stdin/out/err can be redirected to files with "< file", "> file", and "2> file". Alternatively the custom command could run a "${CMAKE_COMMAND} -P myscript.cmake" which does execute_process inside. Please bring this up on the mailing list for broader discussion if you still have concerns. |
|
(0034031) Robert Maynard (manager) 2013-10-07 10:09 |
Closing resolved issues that have not been updated in more than 4 months. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2013-04-13 05:51 | manday | New Issue | |
| 2013-04-15 09:02 | Brad King | Note Added: 0032830 | |
| 2013-04-15 09:02 | Brad King | Status | new => resolved |
| 2013-04-15 09:02 | Brad King | Resolution | open => no change required |
| 2013-10-07 10:09 | Robert Maynard | Note Added: 0034031 | |
| 2013-10-07 10:09 | Robert Maynard | Status | resolved => closed |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |