fix: don't hardcode libexec dir

Use `CMAKE_INSTALL_FULL_LIBEXECDIR` so that setting `CMAKE_INSTALL_LIBEXECDIR` changes `LIBEXEC_LINGLONG_DIR` accordingly.
This commit is contained in:
Felix Yan 2025-06-21 21:50:13 +03:00 committed by dengbo
parent 7ecb38f429
commit ac960854e8
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/share/dbus-1/system-services
DESTINATION ${DBUS_SYSTEM_BUS_DIR})
# libexec
set(LIBEXEC_LINGLONG_DIR ${CMAKE_INSTALL_PREFIX}/libexec/linglong)
set(LIBEXEC_LINGLONG_DIR ${CMAKE_INSTALL_FULL_LIBEXECDIR}/linglong)
install(
PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/libexec/linglong/app-conf-generator
${CMAKE_CURRENT_BINARY_DIR}/libexec/linglong/ld-cache-generator