From dc4f328f872734fdd0c9b2544bbd1bc8623598d0 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Thu, 11 Jan 2018 00:58:52 +0300 Subject: Fixed Alpine build --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d78453c..c393c5f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ include(GNUInstallDirs) list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}) set(GETTEXT_PACKAGE "musl-locales") -set(MUSL_LOCPATH ${CMAKE_INSTALL_DATAROOTDIR}/i18n/locales/musl CACHE PATH "Locales directory" FORCE) +set(MUSL_LOCPATH i18n/locales/musl CACHE PATH "Locales directory" FORCE) configure_file(config.h.in config.h) configure_file(locale.in 00locale.sh) find_package(Intl) @@ -16,7 +16,8 @@ endif() target_compile_options(locale PRIVATE $<$:-std=gnu11 -Wno-pedantic> ) -install(PROGRAMS ${CMAKE_BINARY_DIR}/00locale.sh DESTINATION "${CMAKE_INSTALL_SYSCONFDIR}/profile.d") +install(PROGRAMS ${CMAKE_BINARY_DIR}/00locale.sh DESTINATION +"${CMAKE_INSTALL_FULL_SYSCONFDIR}/profile.d") install(TARGETS locale DESTINATION bin) add_subdirectory(po) add_subdirectory(musl-po) -- cgit v1.2.3-70-g09d2