diff options
author | Christian Tismer <tismer@stackless.com> | 2015-08-16 22:30:17 +0200 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2015-08-16 22:30:17 +0200 |
commit | a71b6d189fac12d24c201ba367aa6c6e5a802c13 (patch) | |
tree | 93f62e25d6f93874b870e0fdd6a593e8426b1db3 | |
parent | 1871236847faa002737f7999c3fcc31cf848499c (diff) |
improve the windows installer to handle backslash properly
-rw-r--r-- | CMakeLists.txt | 10 |
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) |