CMake warn if libconfig not found

This commit is contained in:
Braiden Vasco 2018-04-06 15:51:20 +00:00
parent d134aecf3e
commit 09478f9957
No known key found for this signature in database
GPG Key ID: 2F87CADA171E2424

View File

@ -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