Only install locale files if using gettext

This commit is contained in:
Giuseppe Bilotta 2011-07-21 14:46:14 +02:00
parent adb7181969
commit 7b93fb59cf

@ -270,8 +270,10 @@ if(BUILD_CLIENT)
install(FILES ${images} DESTINATION ${DATADIR}) 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(WIN32)
if(DEFINED IRRLICHT_DLL) if(DEFINED IRRLICHT_DLL)
install(FILES ${IRRLICHT_DLL} DESTINATION ${BINDIR}) install(FILES ${IRRLICHT_DLL} DESTINATION ${BINDIR})