Skip to content

Commit

Permalink
Fix properly install to /etc for /usr prefix (closes merbanan#2827)
Browse files Browse the repository at this point in the history
  • Loading branch information
zuckschwerdt committed Feb 10, 2024
1 parent 0443488 commit 2d63f30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion conf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
########################################################################
file(GLOB RTL433_CONF_FILES "*.conf")

# Note that apparently bare `etc` or relative CMAKE_INSTALL_SYSCONFDIR
# always gets CMAKE_INSTALL_PREFIX prepended.
# Use absolute CMAKE_INSTALL_FULL_SYSCONFDIR to get /etc for /usr prefix.
install(FILES
${RTL433_CONF_FILES}
DESTINATION etc/rtl_433
DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/rtl_433
)

0 comments on commit 2d63f30

Please sign in to comment.