diff --git a/conf/CMakeLists.txt b/conf/CMakeLists.txt index d41c1a8db..83bca07b4 100644 --- a/conf/CMakeLists.txt +++ b/conf/CMakeLists.txt @@ -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 )