Explicitly search for Python to fix compilation with ECM 6.26
pybind11 has a bug [1] where the pybind11::embed cmake target does not get correctly linked to Python after a previous find_package(Python3) call without the Development component has been issued. This affects audiotube after an ECM 6.26 change [2] added such a call, breaking compilation. As a workaround, add an explicit find_package call for Python that includes the Development component and overrides the ECM one. [1] https://github.com/pybind/pybind11/issues/6063 [2] https://invent.kde.org/frameworks/extra-cmake-modules/-/commit/e46088158e5631417602322ecdc08cc692192134 CCBUG: 520142
This commit is contained in:
1 parent
ea54bc7084
commit
273d9b926d
1 file changed
+1
@@ -42,6 +42,7 @@ kde_enable_exceptions()
|
||||
|
||||
find_package(Qt6 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core Gui Qml QuickControls2 Svg Sql Widgets Multimedia Concurrent DBus)
|
||||
find_package(KF6 REQUIRED COMPONENTS Kirigami I18n CoreAddons Crash WindowSystem IconThemes Config)
|
||||
find_package(Python3 COMPONENTS Development.Embed REQUIRED)
|
||||
set(PYBIND11_FINDPYTHON ON)
|
||||
find_package(pybind11 REQUIRED)
|
||||
find_package(Ytdlp REQUIRED RUNTIME)
|
||||
|
||||
Reference in new issue
Block a user