summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2015-06-09 20:11:20 +0100
committerPeter Powell <petpow@saberuk.com>2015-06-14 18:18:26 +0100
commit8ffce4d2f3ab29677b466238ce900a85b6c9d693 (patch)
treeb39c7d297b1c865e3051434c74dcbf425adc1064 /win
parent10127b6540c6c30bdb1bfa4c0d4d4afe30c2f22e (diff)
Fix various issues with the nationalchars module.
- Strip the directory name in the default casemapping value. - Error out if the casemapping value contains a space. - Error out if the locale file failed to load. - Fix relative file path when building on Windows. - Install nationalchars files on Windows.
Diffstat (limited to 'win')
-rw-r--r--win/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/win/CMakeLists.txt b/win/CMakeLists.txt
index 087bd7970..10653cf74 100644
--- a/win/CMakeLists.txt
+++ b/win/CMakeLists.txt
@@ -74,6 +74,10 @@ install(FILES ${EXTRA_DLLS} DESTINATION .)
file(GLOB_RECURSE EXAMPLE_CONFIGS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${INSPIRCD_BASE}/docs/conf/*.example")
install(FILES ${EXAMPLE_CONFIGS} DESTINATION conf)
+# Install nationalchars files
+file(GLOB_RECURSE EXAMPLE_LOCALES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${INSPIRCD_BASE}/locales/*")
+install(FILES ${EXAMPLE_LOCALES} DESTINATION locales)
+
# Create an empty data and logs directory and install them
file(MAKE_DIRECTORY ${DATA_PATH})
install(DIRECTORY ${DATA_PATH} DESTINATION .)