Only install locale files if using gettext
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 21 Jul 2011 12:46:14 +0000 (14:46 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 21 Jul 2011 12:46:23 +0000 (14:46 +0200)
src/CMakeLists.txt

index 2d7a7fc68a9c5f18f8ee08b21e7e4ef609d2cf91..6cc5c035f602a0199e62978ec1f387a747fd571d 100644 (file)
@@ -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})