summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-01-24 15:07:54 (GMT)
committerBrad King <brad.king@kitware.com>2024-01-24 21:59:49 (GMT)
commitb6e4e4babcdc6b44a1d494c4e9c07634c2b3bcd6 (patch)
tree98d4ead44dc511d27dace599003db68c6be72423 /Source/cmake.cxx
parent116bb2b70f87276515f9b64937502ce6c8754cbd (diff)
downloadCMake-b6e4e4babcdc6b44a1d494c4e9c07634c2b3bcd6.zip
CMake-b6e4e4babcdc6b44a1d494c4e9c07634c2b3bcd6.tar.gz
CMake-b6e4e4babcdc6b44a1d494c4e9c07634c2b3bcd6.tar.bz2
cmUVProcessChain: Simplify SetExternalStream usage
It is commonly called with the `fileno()` of a `FILE*` stream, so accept the latter directly.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index f54196b..636a0da 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -27,7 +27,6 @@
#include "cmsys/Glob.hxx"
#include "cmsys/RegularExpression.hxx"
-#include "cm_fileno.hxx"
#include "cm_sys_stat.h"
#include "cmBuildOptions.h"
@@ -3916,10 +3915,8 @@ std::function<int()> cmake::BuildWorkflowStep(
{
cmUVProcessChainBuilder builder;
builder.AddCommand(args)
- .SetExternalStream(cmUVProcessChainBuilder::Stream_OUTPUT,
- cm_fileno(stdout))
- .SetExternalStream(cmUVProcessChainBuilder::Stream_ERROR,
- cm_fileno(stderr));
+ .SetExternalStream(cmUVProcessChainBuilder::Stream_OUTPUT, stdout)
+ .SetExternalStream(cmUVProcessChainBuilder::Stream_ERROR, stderr);
return [builder]() -> int {
auto chain = builder.Start();
chain.Wait();