aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Jansen <kde@michael-jansen.biz>2010-07-08 19:18:02 +0000
committerMichael Jansen <kde@michael-jansen.biz>2010-07-08 19:18:02 +0000
commit786680cdb287a4f23429b45780037c86c55aafc1 (patch)
treeee117bb855224efc5d2ded45c6eef40f092cdbb6
parent3f5eb85b639506904ae8a3ee2eaa20518ee55578 (diff)
downloadextra-cmake-modules-786680cdb287a4f23429b45780037c86c55aafc1.tar.gz
extra-cmake-modules-786680cdb287a4f23429b45780037c86c55aafc1.tar.bz2
Make PYTHON_SITE_PACKAGES_INSTALL_DIR an absolute path.
CCMAIL: kde-buildsystem@kde.org svn path=/trunk/KDE/kdelibs/; revision=1147584
-rw-r--r--modules/FindPythonLibrary.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/FindPythonLibrary.cmake b/modules/FindPythonLibrary.cmake
index 141037fc..60567e29 100644
--- a/modules/FindPythonLibrary.cmake
+++ b/modules/FindPythonLibrary.cmake
@@ -60,7 +60,7 @@ else(EXISTS PYTHON_LIBRARY)
set(PYTHON_SITE_PACKAGES_DIR "${_TMP_PYTHON_SITE_PACKAGES_DIR}" CACHE PATH "The python site packages dir" FORCE)
# This one is intended to be used and changed by the user for installing own modules:
- set(PYTHON_SITE_PACKAGES_INSTALL_DIR lib${LIB_SUFFIX}/python${PYTHON_SHORT_VERSION}/site-packages CACHE PATH "The directory where python modules will be installed to.")
+ set(PYTHON_SITE_PACKAGES_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/python${PYTHON_SHORT_VERSION}/site-packages CACHE PATH "The directory where python modules will be installed to.")
string(REGEX REPLACE "([0-9]+).([0-9]+)" "\\1\\2" PYTHON_SHORT_VERSION_NO_DOT ${PYTHON_SHORT_VERSION})
set(PYTHON_LIBRARY_NAMES python${PYTHON_SHORT_VERSION} python${PYTHON_SHORT_VERSION_NO_DOT})