Hack the gettext detection a bit to fix translations not working on OSX buildbot builds

This commit is contained in:
Pierre Bourdon 2013-09-12 18:10:16 +02:00
parent c1ddeacc9d
commit 44066326ff
1 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ if(USE_UPNP)
endif()
include(FindGettext)
if(GETTEXT_FOUND AND wxWidgets_FOUND)
if(GETTEXT_MSGMERGE_EXECUTABLE AND GETTEXT_MSGFMT_EXECUTABLE AND wxWidgets_FOUND)
file(GLOB LINGUAS ${CMAKE_SOURCE_DIR}/Languages/po/*.po)
add_custom_target(translations ALL)
GETTEXT_CREATE_TRANSLATIONS(${CMAKE_SOURCE_DIR}/Languages/po/dolphin-emu.pot ${LINGUAS})
@ -261,7 +261,7 @@ else()
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/did_copy_data_into_bundle
)
if(GETTEXT_FOUND AND wxWidgets_FOUND)
if(GETTEXT_MSGMERGE_EXECUTABLE AND GETTEXT_MSGFMT_EXECUTABLE AND wxWidgets_FOUND)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/copy_translations_into_bundle.cmake "
file(GLOB TRANSLATION_FILES RELATIVE ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}/*.gmo