aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2015-08-16 22:30:17 +0200
committerChristian Tismer <ctismer@gmail.com>2015-09-17 12:40:53 +0200
commit8fc31c972c05e3dc125e21f4cf1d680bf7370179 (patch)
tree93f62e25d6f93874b870e0fdd6a593e8426b1db3
parent1871236847faa002737f7999c3fcc31cf848499c (diff)
simplify the repos by turning qt5 into master and ignoring qt4.
-rw-r--r--CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 830dcb5..a8579c3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,7 +3,7 @@ project(pyside-tools)
find_package(Shiboken 2.0.0 REQUIRED)
find_package(Qt5 REQUIRED Core)
-find_package(PySide 1.1.0 REQUIRED)
+find_package(PySide 2.0.0 REQUIRED)
set(pyside_tools_MAJOR_VERSION "2")
set(pyside_tools_MINOR_VERSION "0")
@@ -17,9 +17,11 @@ option(BUILD_TESTS "Build tests." TRUE)
# UIC stuff
if (NOT SITE_PACKAGE)
execute_process(
- 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}'))"
+ COMMAND ${SHIBOKEN_PYTHON_INTERPRETER} -c "if True:
+ from distutils import sysconfig
+ from os.path import sep
+ print(sysconfig.get_python_lib(1, 0, prefix='${CMAKE_INSTALL_PREFIX}').replace(sep, '/'))
+ "
OUTPUT_VARIABLE SITE_PACKAGE
OUTPUT_STRIP_TRAILING_WHITESPACE)
if (NOT SITE_PACKAGE)