1 From 6aaf04036f0affbeddda123bff111990c4d5fd72 Mon Sep 17 00:00:00 2001
2 From: Dengke Du <dengke.du@windriver.com>
3 Date: Fri, 26 Oct 2018 14:31:10 +0800
4 Subject: [PATCH] ceph-detect-init: correct the installation for OE
6 Signed-off-by: Dengke Du <dengke.du@windriver.com>
7 Upstream-Status: Inappropriate [oe specific]
9 cmake/modules/Distutils.cmake | 11 ++---------
10 1 file changed, 2 insertions(+), 9 deletions(-)
12 diff --git a/cmake/modules/Distutils.cmake b/cmake/modules/Distutils.cmake
13 index 3091d97..c50fe77 100644
14 --- a/cmake/modules/Distutils.cmake
15 +++ b/cmake/modules/Distutils.cmake
16 @@ -16,15 +16,8 @@ function(distutils_install_module name)
17 cmake_parse_arguments(DU "" INSTALL_SCRIPT "" ${ARGN})
19 set(options --prefix=${CMAKE_INSTALL_PREFIX})
20 - if(DEFINED ENV{DESTDIR})
21 - if(EXISTS /etc/debian_version)
22 - list(APPEND options --install-layout=deb)
24 - list(APPEND options --root=\$ENV{DESTDIR})
25 - if(NOT \"${DU_INSTALL_SCRIPT}\" STREQUAL \"\")
26 - list(APPEND options --install-script=${DU_INSTALL_SCRIPT})
29 + list(APPEND options --root=${CMAKE_DESTDIR})
30 + list(APPEND options --install-lib=${PYTHON_SITEPACKAGES_DIR})
32 COMMAND ${PYTHON${PYTHON_VERSION}_EXECUTABLE}
33 setup.py install \${options}