From 8783dfcbb58f7d8c60aa0624fe6d99a36ba9a393 Mon Sep 17 00:00:00 2001 From: Roman Lacko Date: Thu, 1 Aug 2013 18:53:27 +0200 Subject: Fixed site-packages resolution on Linux with both python 3.x and 2.x installed --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d609d7..4e9eb5d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,7 @@ - cmake_minimum_required(VERSION 2.6) project(pyside-tools) -find_package(PythonInterp REQUIRED) +find_package(Shiboken 1.1.1 REQUIRED) find_package(Qt4 4.5.0 REQUIRED) find_package(PySide 1.0.6 REQUIRED) @@ -18,7 +17,7 @@ option(BUILD_TESTS "Build tests." TRUE) # UIC stuff if (NOT SITE_PACKAGE) execute_process( - COMMAND ${PYTHON_EXECUTABLE} -c "from __future__ import print_function; \\ + COMMAND ${SHIBOKEN_PYTHON_INTERPRETER} -c "from __future__ import print_function; \\ from distutils import sysconfig; \\ print(sysconfig.get_python_lib(1,0,prefix='${CMAKE_INSTALL_PREFIX}'))" OUTPUT_VARIABLE SITE_PACKAGE @@ -74,3 +73,4 @@ if (BUILD_TESTS) enable_testing() add_subdirectory(tests) endif () + -- cgit v1.2.3