summaryrefslogtreecommitdiffstats
path: root/src/common/CMakeLists.txt
diff options
context:
space:
mode:
authorLucian Petrut <lpetrut@cloudbasesolutions.com>2019-11-07 19:12:48 +0100
committerLucian Petrut <lpetrut@cloudbasesolutions.com>2020-08-31 14:11:55 +0200
commitbe155684b8d554fc4adb1cd741517652f92485a9 (patch)
treeb3b23b3334a4cf7a6aac391025a2c3148d5ac5fe /src/common/CMakeLists.txt
parentMerge pull request #36676 from matthewoliver/cephadm_orch_ipv6 (diff)
downloadceph-be155684b8d554fc4adb1cd741517652f92485a9.tar.xz
ceph-be155684b8d554fc4adb1cd741517652f92485a9.zip
common: implement win32 subprocess helpers
This change adds a Windows implementation for the SubProcess class. We're also implementing "run_command" for Windows, re-using the SubProcess class. It might be seen as just a convenience wrapper on top of that. At the moment, the Linux bits are left unchanged, although the same implementation might be used for all platforms. Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
Diffstat (limited to 'src/common/CMakeLists.txt')
-rw-r--r--src/common/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 470ad46234a..66cadf782bb 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -33,7 +33,6 @@ set(common_srcs
Readahead.cc
RefCountedObj.cc
SloppyCRCMap.cc
- SubProcess.cc
Thread.cc
Throttle.cc
Timer.cc
@@ -89,6 +88,7 @@ set(common_srcs
pick_address.cc
random_string.cc
reverse.c
+ run_cmd.cc
scrub_types.cc
shared_mutex_debug.cc
signal.cc
@@ -106,14 +106,15 @@ set(common_srcs
if(WIN32)
list(APPEND common_srcs
blkdev_win32.cc
- dns_resolve_win32.cc)
+ dns_resolve_win32.cc
+ SubProcess_win32.cc)
else()
list(APPEND common_srcs
blkdev.cc
dns_resolve.cc
ipaddr.cc
linux_version.c
- run_cmd.cc)
+ SubProcess.cc)
endif()
set_source_files_properties(${CMAKE_SOURCE_DIR}/src/common/version.cc