View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014645CMakeCMakepublic2013-12-12 11:462014-06-02 08:37
ReporterNathan Climer 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformPCOSFedoraOS Version17
Product VersionCMake 2.8.9 
Target VersionCMake 3.0Fixed in VersionCMake 3.0 
Summary0014645: exec_program and execute_process don't capture output when it does not end in a newline
DescriptionWhen 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 ReproduceThe 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\"")
TagsNo tags attached.
Attached Files

 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.

 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


Copyright © 2000 - 2018 MantisBT Team