diff options
author | Kefu Chai <kchai@redhat.com> | 2019-07-18 03:46:51 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2019-07-20 18:47:39 +0200 |
commit | 606b9c1822a1587448c5d12bff2b86e6e37b522a (patch) | |
tree | 9059d2ef0b7a794ecdd3893d5843030c1dc2b858 /src/tools/cephfs/CMakeLists.txt | |
parent | cmake: update FindPython* modules (diff) | |
download | ceph-606b9c1822a1587448c5d12bff2b86e6e37b522a.tar.xz ceph-606b9c1822a1587448c5d12bff2b86e6e37b522a.zip |
cmake: pass PYTHON_VERSION explicitly
allow `distutils_*()` functions to choose the python according to this
parameter, instead of implicitly using the variable of ${PYTHON_VERSION}
inherited from the caller.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/tools/cephfs/CMakeLists.txt')
-rw-r--r-- | src/tools/cephfs/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/cephfs/CMakeLists.txt b/src/tools/cephfs/CMakeLists.txt index 2cca8dc034c..6ffa26628f1 100644 --- a/src/tools/cephfs/CMakeLists.txt +++ b/src/tools/cephfs/CMakeLists.txt @@ -43,7 +43,7 @@ if(WITH_CEPHFS_SHELL) if(NOT WITH_PYTHON3) message(SEND_ERROR "Please enable WITH_PYTHON3 for cephfs-shell") endif() - set(PYTHON_VERSION 3) include(Distutils) - distutils_install_module(cephfs-shell) + distutils_install_module(cephfs-shell + PYTHON_VERSION 3) endif() |