From ac4b018a2970d4da9d2e83198274137fac497548 Mon Sep 17 00:00:00 2001 From: houz Date: Sun, 16 Aug 2015 02:13:02 +0200 Subject: Added translations to the cmake build (1451236) Fixed bugs: - https://launchpad.net/bugs/1451236 (bzr r14304) --- CMakeScripts/ConfigPaths.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CMakeScripts/ConfigPaths.cmake') diff --git a/CMakeScripts/ConfigPaths.cmake b/CMakeScripts/ConfigPaths.cmake index 770e0c6ad..848e293f4 100644 --- a/CMakeScripts/ConfigPaths.cmake +++ b/CMakeScripts/ConfigPaths.cmake @@ -5,7 +5,9 @@ IF(WIN32) set(SHARE_INSTALL "share" CACHE STRING "Data file install path. Must be a relative path (from CMAKE_INSTALL_PREFIX), with no trailing slash.") ELSE(WIN32) # TODO: check and change this to correct value: - SET(PACKAGE_LOCALE_DIR "locale") + if(NOT PACKAGE_LOCALE_DIR) + SET(PACKAGE_LOCALE_DIR "${CMAKE_INSTALL_PREFIX}/share/locale") # packagers might overwrite this + endif(NOT PACKAGE_LOCALE_DIR) if(NOT SHARE_INSTALL) set(SHARE_INSTALL "share" CACHE STRING "Data file install path. Must be a relative path (from CMAKE_INSTALL_PREFIX), with no trailing slash.") -- cgit v1.2.3