Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make python install respect custom CMAKE_INSTALL_PREFIX

  • Loading branch information...
commit 97339e300dbeafc25e3ab5335be0f50f3195c608 1 parent 105ce0e
@c42f c42f authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  python/CMakeLists.txt
View
2  python/CMakeLists.txt
@@ -53,7 +53,7 @@ if (PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND)
if (PYTHON_DEB_INSTALL_TARGET)
set(PYTHON_COMMAND "import sys; print '/usr/lib/python'+str(sys.version_info[0])+'.'+str(sys.version_info[1])+'/dist-packages'")
else (PYTHON_DEB_INSTALL_TARGET)
- set(PYTHON_COMMAND "from distutils.sysconfig import get_python_lib; print get_python_lib()")
+ set(PYTHON_COMMAND "from distutils.sysconfig import get_python_lib; print get_python_lib(prefix='${CMAKE_INSTALL_PREFIX}')")
endif (PYTHON_DEB_INSTALL_TARGET)
execute_process(COMMAND "${PYTHON_EXECUTABLE}" "-c" "${PYTHON_COMMAND}" OUTPUT_VARIABLE PYTHON_SITE_MODULES OUTPUT_STRIP_TRAILING_WHITESPACE)
install(TARGETS pynabo LIBRARY DESTINATION ${PYTHON_SITE_MODULES})
Please sign in to comment.
Something went wrong with that request. Please try again.