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.20110731_3~50^2~6^2~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7b93fb59cfbc9d89e13b8046634c0ab5a1a4a691;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})