diff --git a/CMakeLists.txt b/CMakeLists.txt index 29882500c..f4306ee85 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,14 +79,14 @@ elseif(UNIX) # Linux, BSD etc set(ICONDIR "unix/icons") set(LOCALEDIR "locale") else() - set(SHAREDIR "share/${PROJECT_NAME}") - set(BINDIR "bin") - set(DOCDIR "share/doc/${PROJECT_NAME}") - set(MANDIR "share/man") - set(EXAMPLE_CONF_DIR ${DOCDIR}) - set(XDG_APPS_DIR "share/applications") - set(ICONDIR "share/icons") - set(LOCALEDIR "share/locale") + set(SHAREDIR "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}" CACHE PATH "") + set(BINDIR "bin" CACHE PATH "") + set(DOCDIR "share/doc/${PROJECT_NAME}" CACHE PATH "") + set(MANDIR "share/man" CACHE PATH "") + set(EXAMPLE_CONF_DIR ${DOCDIR} CACHE PATH "") + set(XDG_APPS_DIR "share/applications" CACHE PATH "") + set(ICONDIR "share/icons" CACHE PATH "") + set(LOCALEDIR "share/locale" CACHE PATH "") endif() endif()