summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2021-08-19 16:21:14 +0200
committerDominik Holland <dominik.holland@qt.io>2021-08-24 08:50:44 +0200
commitf14a3163694ab07c9928efa8e7cd343c9d2f92fa (patch)
treeb4238dd3f08fc05fa7e7dc8f6ba80a7d95b6f5d8 /src
parent01ca44a1945fa492a82dc1be3495eb3420f897ef (diff)
cmake: Fix building the examples as standalone projects
We need to include the QtFindPackageHelpers explicitly in this case, in order to use qt_find_package in our functions. Change-Id: Iafaa74a85b42fca055268cd08fbc5d3dedd736db Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/interfaceframework/Qt6InterfaceFrameworkMacros.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interfaceframework/Qt6InterfaceFrameworkMacros.cmake b/src/interfaceframework/Qt6InterfaceFrameworkMacros.cmake
index 894a4d44..4de8e5f2 100644
--- a/src/interfaceframework/Qt6InterfaceFrameworkMacros.cmake
+++ b/src/interfaceframework/Qt6InterfaceFrameworkMacros.cmake
@@ -237,6 +237,7 @@ function(qt6_ifcodegen_generate)
set(ENV{PYTHONHOME} ${_VIRTUALENV})
set(ENV{VIRTUAL_ENV} ${_VIRTUALENV})
else()
+ include(QtFindPackageHelpers)
qt_find_package(Python3 PROVIDED_TARGETS Python3::Interpreter MODULE_NAME interfaceframework)
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})
endif()