Don't require libsystemd for system tests

The tests don't require it to compile.
This commit is contained in:
Markus Mäkelä 2018-11-22 11:07:54 +02:00
parent 1bba689c80
commit 75fb728ee7
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -51,7 +51,7 @@ execute_process(
find_library(HAVE_SYSTEMD NAMES systemd)
if(HAVE_SYSTEMD)
add_definitions(-DHAVE_SYSTEMD=1)
else()
elseif(NOT BUILD_SYSTEM_TESTS)
# If systemd is in use, require libsystemd-dev to be installed
if(NOT NOT_SYSTEMD_IS_RUNNING)
message( FATAL_ERROR "systemd is running: please install libsystemd-dev" )