From 551c0e1861536ce18572f049b647470e29656473 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Mon, 18 May 2020 19:21:12 -0700 Subject: Only require json-glib if HARDINFO_NOSYNC is disabled --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 68afed66..e2360eb0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,11 +88,10 @@ else() endif() if(NOT HARDINFO_NOSYNC) - pkg_check_modules(LIBSOUP libsoup-2.4>=2.24) + pkg_check_modules(LIBSOUP REQUIRED libsoup-2.4>=2.24) + pkg_check_modules(JSON_GLIB REQUIRED json-glib-1.0) endif() -pkg_check_modules(JSON_GLIB REQUIRED json-glib-1.0>=1.4) - pkg_check_modules(X11 REQUIRED x11) include(FindZLIB REQUIRED) -- cgit v1.2.3