瀏覽代碼

systemd uses Linux only

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Nobuhiro Iwamatsu 11 年之前
父節點
當前提交
fd74c4ef99
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      CMakeLists.txt

+ 3 - 1
CMakeLists.txt

@@ -240,6 +240,8 @@ install(FILES slimlock.1 DESTINATION ${MANDIR}/man1/)
 # configure
 install(FILES slim.conf DESTINATION ${SYSCONFDIR})
 # systemd service file
-install(FILES slim.service DESTINATION ${LIBDIR}/systemd/system)
+if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+	install(FILES slim.service DESTINATION ${LIBDIR}/systemd/system)
+endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
 # themes directory
 subdirs(themes)