Hack the gettext detection a bit to fix translations not working on OSX buildbot builds
This commit is contained in:
parent
c1ddeacc9d
commit
44066326ff
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue