From: Giuseppe Bilotta Date: Thu, 21 Jul 2011 12:46:14 +0000 (+0200) Subject: Only install locale files if using gettext X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=3e78b29cae00b763e3350bccb27ad48ec3141ef5;p=zefram%2Fminetest%2Fminetest_engine.git Only install locale files if using gettext --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2d7a7fc6..6cc5c035 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})