fancontrol-ng: install the unit file under /lib

This commit is contained in:
Přemysl Eric Janouch 2016-11-24 20:32:02 +01:00
parent 1aeb5b86bb
commit ff604570fc
Signed by: p
GPG Key ID: B715679E3A361BE6
1 changed files with 2 additions and 1 deletions

View File

@ -62,8 +62,9 @@ include (GNUInstallDirs)
configure_file (${PROJECT_SOURCE_DIR}/fancontrol-ng.service.in
${PROJECT_BINARY_DIR}/fancontrol-ng.service @ONLY)
# System-wide unit files should be installed under /lib and not /usr/lib
install (FILES ${PROJECT_BINARY_DIR}/fancontrol-ng.service
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/systemd/system)
DESTINATION /lib/systemd/system)
install (FILES fancontrol-ng.conf.example
DESTINATION ${CMAKE_INSTALL_DATADIR}/fancontrol-ng)