From 2ffc242182c15cbbb26b26a5b1650a1cc4eba3cf Mon Sep 17 00:00:00 2001 From: Burt P Date: Sun, 4 Jun 2017 21:47:56 -0500 Subject: cmake: add option to disable sync via libsoup Adds a cmake option HARDINFO_NOSYNC to disable libsoup and remote sync. * Workaround for incompatible libsoup (ex: on raspbian) * xmlrpc.hardinfo.org is down and sync isn't currently available anyway. Use: cmake -DHARDINFO_NOSYNC=1 .. Signed-off-by: Burt P --- CMakeLists.txt | 6 ++++-- README | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bff6a777..ca94d1bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.6) cmake_policy(VERSION 2.6) set(HARDINFO_VERSION "0.6-alpha") - +option(HARDINFO_NOSYNC "Disable database sync via libsoup" 0) SET( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ) include(GNUInstallDirs) @@ -53,7 +53,9 @@ add_subdirectory(po) include(FindPkgConfig) pkg_check_modules(GTK REQUIRED gtk+-2.0>=2.10 glib-2.0>=2.10 gthread-2.0>=2.10 gmodule-export-2.0>=2.10) -pkg_check_modules(LIBSOUP libsoup-2.4>=2.24) +if(NOT HARDINFO_NOSYNC) + pkg_check_modules(LIBSOUP libsoup-2.4>=2.24) +endif() include_directories( ${CMAKE_SOURCE_DIR} diff --git a/README b/README index 8dfcf163..5484dfe0 100644 --- a/README +++ b/README @@ -23,6 +23,9 @@ Required: Optional (for synchronization/remote): - Libsoup 2.24 (or newer) +If having trouble building with libsoup, disable it with: + cmake -DHARDINFO_NOSYNC=1 + BUILDING -------- -- cgit v1.2.3