[extra-cmake-modules] find-modules: Fix python bindings compilation after 7af93dd23873d0b9cdbac192949e7e5114940aa6

Antonio Rojas null at kde.org
Sun Sep 3 17:25:58 UTC 2017


Git commit 8b4033f16c2ae07c57364cde62c21bd0e75539c3 by Antonio Rojas.
Committed on 03/09/2017 at 17:23.
Pushed by arojas into branch 'master'.

Fix python bindings compilation after 7af93dd23873d0b9cdbac192949e7e5114940aa6

Explicitely set LIBRARY_OUTPUT_DIRECTORY for the python module

Differential Revision: https://phabricator.kde.org/D7677
CCMAIL: release-team at kde.org

M  +2    -1    find-modules/FindPythonModuleGeneration.cmake

https://commits.kde.org/extra-cmake-modules/8b4033f16c2ae07c57364cde62c21bd0e75539c3

diff --git a/find-modules/FindPythonModuleGeneration.cmake b/find-modules/FindPythonModuleGeneration.cmake
index 684678b..31cc52d 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})


More information about the release-team mailing list