[cmake-developers] [CMake 0014645]: exec_program and execute_process don't capture output when it does not end in a newline
Mantis Bug Tracker
mantis at public.kitware.com
Thu Dec 12 11:46:38 EST 2013
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=14645
======================================================================
Reported By: Nathan Climer
Assigned To:
======================================================================
Project: CMake
Issue ID: 14645
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-12-12 11:46 EST
Last Modified: 2013-12-12 11:46 EST
======================================================================
Summary: 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\"")
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-12-12 11:46 Nathan Climer New Issue
======================================================================
More information about the cmake-developers
mailing list