浏览代码

Make systemd detection more robust

We don't need to look for this on Windows or macOS, and we need to be
able to gracefully handle systems without pkg-config.
pull/1722/head
Pierre Ossman 4 个月前
父节点
当前提交
76ee7475c0
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6
    1
      CMakeLists.txt

+ 6
- 1
CMakeLists.txt 查看文件

@@ -302,7 +302,12 @@ if(UNIX AND NOT APPLE)
endif()

# check for systemd support (socket activation)
pkg_check_modules(LIBSYSTEMD libsystemd)
if(UNIX AND NOT APPLE)
find_package(PkgConfig)
if (PKG_CONFIG_FOUND)
pkg_check_modules(LIBSYSTEMD libsystemd)
endif()
endif()

# Generate config.h and make sure the source finds it
configure_file(config.h.in config.h)

正在加载...
取消
保存