From 181219b184472b876cbe5b9e3160026194955b8f Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 25 Apr 2024 19:50:52 -0400 Subject: [PATCH] Don't require PkgConfig if we don't need it --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b5d30f2..01a60d9 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,13 +42,13 @@ find_package(Qt6 ${QT_MIN_VERSION} REQUIRED COMPONENTS Concurrent Test) find_package(KF6 ${KF_MIN_VERSION} REQUIRED COMPONENTS Kirigami I18n Config CoreAddons Archive) -find_package(PkgConfig REQUIRED) find_package(QCoro6 REQUIRED COMPONENTS Core Network Qml) qcoro_enable_coroutines() qt_policy(SET QTP0001 NEW) if (ENABLE_GAMEMODE) + find_package(PkgConfig REQUIRED) pkg_search_module(GAMEMODE REQUIRED gamemode) endif ()