From: johanengelen Date: Fri, 4 Apr 2008 09:40:51 +0000 (+0000) Subject: cmake: fix PACKAGE_LOCALE_DIR for win32. todo: check for linux X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=931c92216076df5749b9d6bf66ff96c43c82c174;p=inkscape.git cmake: fix PACKAGE_LOCALE_DIR for win32. todo: check for linux --- diff --git a/CMakeLists.txt b/CMakeLists.txt index cd0fff9d6..58ab4de05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,15 @@ SET(CMAKE_INCLUDE_CURRENT_DIR TRUE) # Set to true if compiler/linker should enable profiling: #SET(ENABLE_PROFILING TRUE) +# Probably best to move all these path things to a single file +IF(WIN32) + SET(PACKAGE_LOCALE_DIR "locale") +ELSEIF(WIN32) + # TODO: check and change this to correct value: + SET(PACKAGE_LOCALE_DIR "locale") +ENDIF(WIN32) + + SET(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) SET(CMAKE_SKIP_RPATH:BOOL OFF) SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeScripts) diff --git a/config.h.cmake b/config.h.cmake index 1812864d3..beacf65ed 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -219,7 +219,7 @@ #cmakedefine PACKAGE_BUGREPORT "" /* Localization directory */ -#cmakedefine PACKAGE_LOCALE_DIR +#define PACKAGE_LOCALE_DIR "${PACKAGE_LOCALE_DIR}" /* Define to the full name of this package. */ #define PACKAGE_NAME "${PROJECT_NAME}"