From 09478f99578df9d9fd477e0c0b53cb0d74c09e2a Mon Sep 17 00:00:00 2001 From: Braiden Vasco Date: Fri, 6 Apr 2018 15:51:20 +0000 Subject: CMake warn if libconfig not found --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index ddcf39b6..96795ed3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -544,7 +544,10 @@ if(BOOTSTRAP_DAEMON AND WIN32) set(BOOTSTRAP_DAEMON OFF) endif() if(BOOTSTRAP_DAEMON) - if(LIBCONFIG_FOUND) + if(NOT LIBCONFIG_FOUND) + message(WARNING "Option BOOTSTRAP_DAEMON is enabled but required library LIBCONFIG was not found.") + set(BOOTSTRAP_DAEMON OFF) + else() add_executable(tox-bootstrapd ${CPUFEATURES} other/bootstrap_daemon/src/command_line_arguments.c other/bootstrap_daemon/src/command_line_arguments.h -- cgit v1.2.3