datadir is the relative path considering the prefix, FULL_DATADIR will be created out of DATADIR

This commit is contained in:
Martin Marmsoler 2022-10-20 15:21:43 +02:00
parent 2a5cb1bd67
commit e17d08f339
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ add_dependencies(gittyup translations)
if(APPLE)
set(CONTENTS_DIR ${GITTYUP_NAME}.app/Contents)
elseif(UNIX)
set(CONTENTS_DIR ${CMAKE_INSTALL_FULL_DATADIR}/gittyup)
set(CONTENTS_DIR ${CMAKE_INSTALL_DATADIR}/gittyup)
endif()
foreach(LANGUAGE ${LANGUAGES})

View File

@ -208,7 +208,7 @@ else()
# Windows and UNIX must be ./ otherwise it is interpreted as absolute path
if(UNIX)
set(RESOURCES_INSTALL_DIR
"${CMAKE_INSTALL_FULL_DATADIR}/gittyup/Resources"
"${CMAKE_INSTALL_DATADIR}/gittyup/Resources"
CACHE STRING "The path for installing resource files")
else()
set(RESOURCES_INSTALL_DIR