aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-07-21 14:46:14 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-07-21 14:46:23 +0200
commit7b93fb59cfbc9d89e13b8046634c0ab5a1a4a691 (patch)
tree4650d9b08aff80453f05a217794d0901e2782c09 /src
parentadb7181969a6398762873298ef0b50ca575d7b31 (diff)
downloadminetest-7b93fb59cfbc9d89e13b8046634c0ab5a1a4a691.tar.gz
minetest-7b93fb59cfbc9d89e13b8046634c0ab5a1a4a691.tar.bz2
minetest-7b93fb59cfbc9d89e13b8046634c0ab5a1a4a691.zip
Only install locale files if using gettext
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2d7a7fc68..6cc5c035f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -270,8 +270,10 @@ if(BUILD_CLIENT)
install(FILES ${images} DESTINATION ${DATADIR})
- install(FILES ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES/minetest-delta.mo DESTINATION locale/de/LC_MESSAGES)
-
+ if (USE_GETTEXT)
+ install(FILES ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES/minetest-delta.mo DESTINATION locale/de/LC_MESSAGES)
+ endif()
+
if(WIN32)
if(DEFINED IRRLICHT_DLL)
install(FILES ${IRRLICHT_DLL} DESTINATION ${BINDIR})