From 786680cdb287a4f23429b45780037c86c55aafc1 Mon Sep 17 00:00:00 2001 From: Michael Jansen Date: Thu, 8 Jul 2010 19:18:02 +0000 Subject: Make PYTHON_SITE_PACKAGES_INSTALL_DIR an absolute path. CCMAIL: kde-buildsystem@kde.org svn path=/trunk/KDE/kdelibs/; revision=1147584 --- modules/FindPythonLibrary.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/FindPythonLibrary.cmake') 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}) -- cgit v1.2.1