From: Kornel Benko Date: Sun, 2 Jun 2013 15:52:40 +0000 (+0200) Subject: cmake: Make really sure, also the first po-file will be X-Git-Tag: 2.1.0beta1~61 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b810c5744f8581d86a5d7d19142b6b1a87f5552a;p=lyx.git cmake: Make really sure, also the first po-file will be processed, if it is not "ALL" We cannot overwrite tha params given to a macro. Instead use an own variable. --- diff --git a/development/cmake/modules/FindLyXGettext.cmake b/development/cmake/modules/FindLyXGettext.cmake index 3770c5e54c..d00235e11f 100755 --- a/development/cmake/modules/FindLyXGettext.cmake +++ b/development/cmake/modules/FindLyXGettext.cmake @@ -35,12 +35,14 @@ MACRO(GETTEXT_CREATE_TRANSLATIONS _potFile _firstPoFile) GET_FILENAME_COMPONENT(_absPotFile ${_potFile} ABSOLUTE) SET(_addToAll) + set(_firstArg) IF(${_firstPoFile} STREQUAL "ALL") SET(_addToAll "ALL") - SET(_firstPoFile) + else() + set(_firstArg ${_firstPoFile}) ENDIF(${_firstPoFile} STREQUAL "ALL") - FOREACH (_currentPoFile ${_firstPoFile} ${ARGN}) + FOREACH (_currentPoFile ${_firstArg} ${ARGN}) GET_FILENAME_COMPONENT(_absFile ${_currentPoFile} ABSOLUTE) GET_FILENAME_COMPONENT(_abs_PATH ${_absFile} PATH) GET_FILENAME_COMPONENT(_lang ${_absFile} NAME_WE)