--- CMakeLists.txt.orig 2013-10-01 18:38:05.000000000 -0400 +++ CMakeLists.txt 2016-10-03 20:14:40.203096183 -0400 @@ -240,7 +240,7 @@ # configure install(FILES slim.conf DESTINATION ${SYSCONFDIR}) # systemd service file -if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") +if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND USE_SYSTEMD) install(FILES slim.service DESTINATION ${LIBDIR}/systemd/system) endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux") # themes directory .