Skip over translation files with .git in the path when building pcsx2 with cmake. Fixes an intermittant cmake build error about duplicate rules.

This commit is contained in:
Shanoah Alkire 2018-12-31 23:02:34 -08:00
parent d55e9cbd96
commit 43fa7cd6c6
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,10 @@ MACRO(GETTEXT_CREATE_TRANSLATIONS_PCSX2 _potFile _firstPoFileArg)
GET_FILENAME_COMPONENT(_lang ${_abs_PATH} NAME_WE)
SET(_gmoFile ${CMAKE_BINARY_DIR}/${_lang}__${_gmoBase}.gmo)
IF (_currentPoFile MATCHES ".git")
continue()
ENDIF (_currentPoFile MATCHES ".git")
IF (CMAKE_BUILD_PO)
ADD_CUSTOM_COMMAND( OUTPUT ${_gmoFile}
COMMAND ${GETTEXT_MSGMERGE_EXECUTABLE} --quiet --update --backup=none -s ${_absFile} ${_absPotFile}