From: Giuseppe Bilotta Date: Thu, 21 Jul 2011 12:46:14 +0000 (+0200) Subject: Only install locale files if using gettext X-Git-Tag: 0.2.20110922~81^2~35^2~5^2~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3e78b29cae00b763e3350bccb27ad48ec3141ef5;p=oweals%2Fminetest.git Only install locale files if using gettext --- 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})