From 54f5669ceb5110aaac4bcad0085a641d0fded093 Mon Sep 17 00:00:00 2001 From: cocomeow Date: Fri, 10 Dec 2021 19:46:42 +0800 Subject: [PATCH] Use find_package(Qt6 REQUIRED COMPONENTS ...) idiom --- CMakeLists.txt | 4 ++-- src/view_models/configtools.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c187ba..ec673f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,8 +27,8 @@ include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/SingleApplication.cmake") include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/qrc.cmake") # Qt 6.2 -find_package(Qt6 6.2 COMPONENTS Gui Core Quick Widgets DBus QuickControls2 - Core5Compat Sql LinguistTools Concurrent ToolsTools REQUIRED) +find_package(Qt6 6.2 REQUIRED COMPONENTS Gui Core Quick Widgets DBus QuickControls2 + Core5Compat Sql LinguistTools Concurrent ToolsTools ) # curl CPMAddPackage( diff --git a/src/view_models/configtools.cpp b/src/view_models/configtools.cpp index 3933832..0c9bcde 100644 --- a/src/view_models/configtools.cpp +++ b/src/view_models/configtools.cpp @@ -46,7 +46,7 @@ bool ConfigTools::init(QSharedPointer curl, bool ConfigTools::loadConfigPath(const QString &file_path) { bool result = true; - // Setting Path > Env Path > Current Path > Default Path + // Setting Path > Env Path > Default Path do { if (file_path == this->m_config_path) break;