Skip to content

Commit

Permalink
Use find_package(Qt6 REQUIRED COMPONENTS ...) idiom
Browse files Browse the repository at this point in the history
  • Loading branch information
cocomeow committed Dec 10, 2021
1 parent 6eea3b0 commit 54f5669
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/view_models/configtools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ bool ConfigTools::init(QSharedPointer<CURLTools> 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;
Expand Down

0 comments on commit 54f5669

Please sign in to comment.