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()