Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | From 070822507befe7c1b8bb1be2d36cb12141d03b8f Mon Sep 17 00:00:00 2001 |
| 2 | From: Qian Lei <qianl.fnst@cn.fujitsu.com> |
| 3 | Date: Tue, 6 Jan 2015 18:38:32 +0800 |
| 4 | Subject: [PATCH] Change the install path in cmakelist |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com> |
| 8 | --- |
| 9 | swig/python/CMakeLists.txt | 8 ++++---- |
| 10 | 1 file changed, 4 insertions(+), 4 deletions(-) |
| 11 | |
| 12 | diff --git a/swig/python/CMakeLists.txt b/swig/python/CMakeLists.txt |
| 13 | index 3976296..93c87c1 100644 |
| 14 | --- a/swig/python/CMakeLists.txt |
| 15 | +++ b/swig/python/CMakeLists.txt |
| 16 | @@ -56,18 +56,18 @@ TARGET_LINK_LIBRARIES( ${NAME} util ) |
| 17 | |
| 18 | INSTALL(TARGETS ${NAME} LIBRARY DESTINATION ${CMPI_LIBRARY_DIR}) |
| 19 | # .py: swig generated |
| 20 | -INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmpi.py DESTINATION ${PYTHON_SITE_DIR} ) |
| 21 | +INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmpi.py DESTINATION $ENV{ENV_INSTALL_PATH} ) |
| 22 | |
| 23 | |
| 24 | # |
| 25 | # cmpi_pywbem_bindings.py: provider implementation |
| 26 | # |
| 27 | -INSTALL(FILES cmpi_pywbem_bindings.py DESTINATION ${PYTHON_SITE_DIR} ) |
| 28 | +INSTALL(FILES cmpi_pywbem_bindings.py DESTINATION $ENV{ENV_INSTALL_PATH} ) |
| 29 | #INSTALL(FILES Py_UnixProcessProvider.py DESTINATION /usr/lib/pycim ) |
| 30 | |
| 31 | -INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c \"from py_compile import compile; compile('\$ENV{DESTDIR}${PYTHON_SITE_DIR}/cmpi.py', dfile='${PYTHON_SITE_DIR}/cmpi.py')\")") |
| 32 | +INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c \"from py_compile import compile; compile('\$ENV{DESTDIR}$ENV{ENV_INSTALL_PATH}/cmpi.py', dfile='\$ENV{ENV_INSTALL_PATH}/cmpi.py')\")") |
| 33 | |
| 34 | -INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c \"from py_compile import compile; compile('\$ENV{DESTDIR}${PYTHON_SITE_DIR}/cmpi_pywbem_bindings.py', dfile='${PYTHON_SITE_DIR}/cmpi_pywbem_bindings.py')\")") |
| 35 | +INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c \"from py_compile import compile; compile('\$ENV{DESTDIR}$ENV{ENV_INSTALL_PATH}/cmpi_pywbem_bindings.py', dfile='$ENV{ENV_INSTALL_PATH}/cmpi_pywbem_bindings.py')\")") |
| 36 | |
| 37 | |
| 38 | |
| 39 | -- |
| 40 | 1.8.3.1 |
| 41 | |