From db00876297b734b621d1289d48d3e754a5167fc3 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Tue, 5 Jun 2018 11:05:33 -0700 Subject: [PATCH] CMakeLists.txt: add back CEPH_BUILD_VIRTUALENV Still used for pybind/mgr/dashboard Signed-off-by: Dan Mick --- src/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c54df0f9f75..3a3bc3b15fe 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -794,6 +794,12 @@ target_link_libraries(librados-config librados global ${BLKID_LIBRARIES} ${RDMA_ install(TARGETS librados-config DESTINATION bin) +# virtualenv base directory for ceph-disk and ceph-detect-init +set(CEPH_BUILD_VIRTUALENV $ENV{TMPDIR}) +if(NOT CEPH_BUILD_VIRTUALENV) + set(CEPH_BUILD_VIRTUALENV /tmp) +endif() + add_subdirectory(pybind) add_subdirectory(ceph-volume) -- 2.39.5