From 43fa7cd6c62c94fc21521bb6bcc162eded569a1f Mon Sep 17 00:00:00 2001 From: Shanoah Alkire Date: Mon, 31 Dec 2018 23:02:34 -0800 Subject: [PATCH] Skip over translation files with .git in the path when building pcsx2 with cmake. Fixes an intermittant cmake build error about duplicate rules. --- cmake/Translation.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/Translation.cmake b/cmake/Translation.cmake index 89e0ae1d2a..6f1079853b 100644 --- a/cmake/Translation.cmake +++ b/cmake/Translation.cmake @@ -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}