From b4956a574a85e5a335d1bbadbd4cee62774eb9e8 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sat, 10 Jan 2009 08:39:35 -0500 Subject: BUG: fix #8122, _firstPoFile was not empty because it was no real variable but just a macro argument -> make it a real variable Alex --- Modules/FindGettext.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Modules/FindGettext.cmake b/Modules/FindGettext.cmake index 99a2705..c7dee52 100644 --- a/Modules/FindGettext.cmake +++ b/Modules/FindGettext.cmake @@ -18,7 +18,9 @@ FIND_PROGRAM(GETTEXT_MSGMERGE_EXECUTABLE msgmerge) FIND_PROGRAM(GETTEXT_MSGFMT_EXECUTABLE msgfmt) -MACRO(GETTEXT_CREATE_TRANSLATIONS _potFile _firstPoFile) +MACRO(GETTEXT_CREATE_TRANSLATIONS _potFile _firstPoFileArg) + # make it a real variable, so we can modify it here + SET(_firstPoFile "${_firstPoFileArg}") SET(_gmoFiles) GET_FILENAME_COMPONENT(_potBasename ${_potFile} NAME_WE) -- cgit v0.12