ReimuNotMoe / ydotool

Generic command-line automation tool (no X!)
GNU Affero General Public License v3.0
1.49k stars 79 forks source link

`CMAKE_INSTALL_PREFIX` not respected for systemd files #108

Open saulrh opened 3 years ago

saulrh commented 3 years ago
saul@enki ~/s/y/build (master) [2]> cmake -DCMAKE_INSTALL_PREFIX=$HOME/stow/ydotool .. && make install

[...snip make output...]

CMake Error at Daemon/cmake_install.cmake:49 (file):
  file INSTALL cannot copy file
  "/home/saul/src/ydotool/Daemon/ydotool.service" to
  "/usr/lib/systemd/user/ydotool.service": Permission denied.

The path is hardcoded in the CMakeLists.txt.

saulrh commented 3 years ago

Workaround: edit the CMakeLists.txt to manually insert a correct path.