]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
CMakeLists.txt: add back CEPH_BUILD_VIRTUALENV
authorDan Mick <dan.mick@redhat.com>
Tue, 5 Jun 2018 18:05:33 +0000 (11:05 -0700)
committerAlfredo Deza <adeza@redhat.com>
Wed, 13 Jun 2018 19:16:26 +0000 (15:16 -0400)
Still used for pybind/mgr/dashboard

Signed-off-by: Dan Mick <dan.mick@redhat.com>
src/CMakeLists.txt

index c54df0f9f755196bce1c6b1b9de5cd5515d9e03f..3a3bc3b15fe0ad1bd3f8267fea4059b490b0edf1 100644 (file)
@@ -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)