aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Rojas <arojas@archlinux.org>2017-09-03 19:23:47 +0200
committerl10n daemon script <scripty@kde.org>2017-09-03 18:34:35 +0000
commit9078a00906e247b92659b710778ddeed9b259bca (patch)
tree84d9ef6bf8c790b024ac2ee528f2b19df6da9eef
parent89a57967ccccc872e6cc86a77eeb0287f8fd5cbc (diff)
downloadextra-cmake-modules-9078a00906e247b92659b710778ddeed9b259bca.tar.gz
extra-cmake-modules-9078a00906e247b92659b710778ddeed9b259bca.tar.bz2
Fix python bindings compilation after 7af93dd23873d0b9cdbac192949e7e5114940aa6v5.38.0-rc2v5.38.0
Explicitely set LIBRARY_OUTPUT_DIRECTORY for the python module Differential Revision: https://phabricator.kde.org/D7677 CCMAIL: release-team@kde.org (cherry picked from commit 8b4033f16c2ae07c57364cde62c21bd0e75539c3)
-rw-r--r--find-modules/FindPythonModuleGeneration.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/find-modules/FindPythonModuleGeneration.cmake b/find-modules/FindPythonModuleGeneration.cmake
index 684678ba..31cc52dd 100644
--- a/find-modules/FindPythonModuleGeneration.cmake
+++ b/find-modules/FindPythonModuleGeneration.cmake
@@ -440,8 +440,9 @@ headers = sipAPI${modulename_value}
set_property(TARGET Py${pyversion}KF5${modulename_value} PROPERTY AUTOMOC OFF)
set_property(TARGET Py${pyversion}KF5${modulename_value} PROPERTY PREFIX "")
+ set_property(TARGET Py${pyversion}KF5${modulename_value} PROPERTY LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/py${pyversion}/${pythonnamespace_value}")
set_property(TARGET Py${pyversion}KF5${modulename_value} PROPERTY
- OUTPUT_NAME "${CMAKE_BINARY_DIR}/py${pyversion}/${pythonnamespace_value}/${modulename_value}")
+ OUTPUT_NAME "${modulename_value}")
if (GPB_SIP_DEPENDS MATCHES PyKF5)
set(_kf5_python_prefix ${CMAKE_INSTALL_PREFIX}/lib/python${pyversion${pyversion}_maj_min}/${GPB_INSTALL_DIR_SUFFIX})