[Buildroot] [git commit] support/misc/toolchainfile.cmake.in: add definitions needed by Qt6

Arnout Vandecappelle (Essensium/Mind) arnout at mind.be
Tue Jul 26 20:54:38 UTC 2022


commit: https://git.buildroot.net/buildroot/commit/?id=b4cb2d3ebc6e2c08fb79e1c195a5028ed24a0cde
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

When compiling Qt6 applications for the target, CMake needs to have
two variables defined to find the host installation of Qt. These two
variables are unconditionally defined, regardless of whether Qt6 is
enabled in the configuration or not, as they do no harm when Qt6 is
not present/used.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
---
 support/misc/toolchainfile.cmake.in | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/support/misc/toolchainfile.cmake.in b/support/misc/toolchainfile.cmake.in
index 30c0e63bf2..5d2b8695b4 100644
--- a/support/misc/toolchainfile.cmake.in
+++ b/support/misc/toolchainfile.cmake.in
@@ -125,3 +125,12 @@ if(@@TOOLCHAIN_HAS_FORTRAN@@)
     set(CMAKE_Fortran_COMPILER "${RELOCATED_HOST_DIR}/@@TARGET_FC@@")
   endif()
 endif()
+
+# For Qt6
+if(NOT DEFINED QT_HOST_PATH)
+  set(QT_HOST_PATH "${RELOCATED_HOST_DIR}")
+endif()
+
+if(NOT DEFINED QT_HOST_PATH_CMAKE_DIR)
+  set(QT_HOST_PATH_CMAKE_DIR "${RELOCATED_HOST_DIR}/lib/cmake")
+endif()



More information about the buildroot mailing list