Code

cmake: fix PACKAGE_LOCALE_DIR for win32. todo: check for linux
authorjohanengelen <johanengelen@users.sourceforge.net>
Fri, 4 Apr 2008 09:40:51 +0000 (09:40 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Fri, 4 Apr 2008 09:40:51 +0000 (09:40 +0000)
CMakeLists.txt
config.h.cmake

index cd0fff9d6cd00b9840c263c0038669868c06e6b0..58ab4de057415a10bcd1a5837dfeedf19641234c 100644 (file)
@@ -10,6 +10,15 @@ SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)
 # Set to true if compiler/linker should enable profiling:\r
 #SET(ENABLE_PROFILING TRUE)\r
 \r
+# Probably best to move all these path things to a single file\r
+IF(WIN32)\r
+    SET(PACKAGE_LOCALE_DIR "locale")\r
+ELSEIF(WIN32)\r
+    # TODO: check and change this to correct value:\r
+    SET(PACKAGE_LOCALE_DIR "locale")\r
+ENDIF(WIN32)\r
+\r
+\r
 SET(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)\r
 SET(CMAKE_SKIP_RPATH:BOOL OFF)\r
 SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeScripts)\r
index 1812864d37d545b263e105884461133f1f17f18d..beacf65edd7834de68012286dfbb7f06b275f43e 100644 (file)
 #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}"