From 505d7b6d0117dfc9fec1dad290a35d7a78f15b64 Mon Sep 17 00:00:00 2001 From: Fabrice Morin Date: Tue, 21 Jul 2026 11:20:38 +0200 Subject: [PATCH] Set qmsetup_DIR before find_package call in order to fix mxe cmake toolchain --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8452e15..28fb2fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -124,11 +124,11 @@ if(NOT TARGET qmsetup::library) RESULT_PATH _package_path ) - # Find package again - find_package(qmsetup REQUIRED PATHS ${_package_path}) - # Update import path set(qmsetup_DIR ${_package_path} CACHE PATH "" FORCE) + + # Find package again + find_package(qmsetup REQUIRED PATHS ${_package_path}) endif() qm_import(Filesystem) @@ -143,4 +143,4 @@ add_subdirectory(src) if(QWINDOWKIT_BUILD_EXAMPLES) add_subdirectory(examples) -endif() \ No newline at end of file +endif()