Fixed compilation on systemd > 210
This commit is contained in:
parent
dc80644471
commit
70f2a43f67
@ -56,8 +56,7 @@ endif()
|
|||||||
|
|
||||||
if (SYSTEMD_SUPPORT)
|
if (SYSTEMD_SUPPORT)
|
||||||
INCLUDE(FindPkgConfig)
|
INCLUDE(FindPkgConfig)
|
||||||
pkg_search_module(SD_DAEMON REQUIRED libsystemd-daemon)
|
pkg_search_module(SD REQUIRED libsystemd)
|
||||||
pkg_search_module(SD_JOURNAL REQUIRED libsystemd-journal)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
@ -212,14 +211,11 @@ if(SSL_SUPPORT)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (SYSTEMD_SUPPORT)
|
if (SYSTEMD_SUPPORT)
|
||||||
target_link_libraries(uhub ${SD_DAEMON_LIBRARIES})
|
target_link_libraries(uhub ${SD_LIBRARIES})
|
||||||
target_link_libraries(uhub ${SD_JOURNAL_LIBRARIES})
|
target_link_libraries(test ${SD_LIBRARIES})
|
||||||
target_link_libraries(test ${SD_DAEMON_LIBRARIES})
|
target_link_libraries(uhub-passwd ${SD_LIBRARIES})
|
||||||
target_link_libraries(test ${SD_JOURNAL_LIBRARIES})
|
target_link_libraries(uhub-admin ${SD_LIBRARIES})
|
||||||
target_link_libraries(uhub-passwd ${SD_JOURNAL_LIBRARIES})
|
include_directories(${SD_INCLUDE_DIRS})
|
||||||
target_link_libraries(uhub-admin ${SD_JOURNAL_LIBRARIES})
|
|
||||||
include_directories(${SD_DAEMON_INCLUDE_DIRS})
|
|
||||||
include_directories(${SD_JOURNAL_INCLUDE_DIRS})
|
|
||||||
add_definitions(-DSYSTEMD)
|
add_definitions(-DSYSTEMD)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user