Fix properly install to /etc for /usr prefix (closes #2827)
This commit is contained in:
parent
0443488ef3
commit
2d63f30681
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue