| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0014645 | CMake | CMake | public | 2013-12-12 11:46 | 2014-06-02 08:37 | ||||
| Reporter | Nathan Climer | ||||||||
| Assigned To | Brad King | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | PC | OS | Fedora | OS Version | 17 | ||||
| Product Version | CMake 2.8.9 | ||||||||
| Target Version | CMake 3.0 | Fixed in Version | CMake 3.0 | ||||||
| Summary | 0014645: exec_program and execute_process don't capture output when it does not end in a newline | ||||||||
| Description | When trying to capture output of a process, if the stream does not end in a new line, these commands cannot capture the output. | ||||||||
| Steps To Reproduce | The following batch script shows the problem nicely MESSAGE(STATUS "Outputting captured newline") EXEC_PROGRAM(printf ARGS "\"output is shown\\n\"") MESSAGE(STATUS "Outputting without newline") EXEC_PROGRAM(printf ARGS "\"output is not shown\"") | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0034790) Brad King (manager) 2013-12-18 11:39 |
The execute_process commands seems to work fine for this. Since 2.8.12 was released CMake 'master' in Git replaced the underlying implementation of exec_program with the same infrastructure used by execute_process. Local testing says this issue was fixed by that. Please try with CMake 'master' built from source, or try a nightly 'next' binary from: http://www.cmake.org/files/dev/?C=M;O=D [^] |
|
(0036056) Robert Maynard (manager) 2014-06-02 08:37 |
Closing resolved issues that have not been updated in more than 4 months. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2013-12-12 11:46 | Nathan Climer | New Issue | |
| 2013-12-18 11:39 | Brad King | Note Added: 0034790 | |
| 2013-12-18 11:39 | Brad King | Assigned To | => Brad King |
| 2013-12-18 11:39 | Brad King | Status | new => resolved |
| 2013-12-18 11:39 | Brad King | Resolution | open => fixed |
| 2013-12-18 11:39 | Brad King | Fixed in Version | => CMake 3.0 |
| 2013-12-18 11:39 | Brad King | Target Version | => CMake 3.0 |
| 2014-06-02 08:37 | Robert Maynard | Note Added: 0036056 | |
| 2014-06-02 08:37 | Robert Maynard | Status | resolved => closed |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |