summaryrefslogtreecommitdiff
path: root/Modules/FindGettext.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2009-01-10 08:39:35 -0500
committerAlexander Neundorf <neundorf@kde.org>2009-01-10 08:39:35 -0500
commitb4956a574a85e5a335d1bbadbd4cee62774eb9e8 (patch)
treef22bcb7200e4f3efd691b13ae722f40b05a00077 /Modules/FindGettext.cmake
parent0f38be1561104857509960390ea6d37cc15a2ba8 (diff)
downloadcmake-b4956a574a85e5a335d1bbadbd4cee62774eb9e8.tar.gz
BUG: fix #8122, _firstPoFile was not empty because it was no real variable
but just a macro argument -> make it a real variable Alex
Diffstat (limited to 'Modules/FindGettext.cmake')
-rw-r--r--Modules/FindGettext.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/FindGettext.cmake b/Modules/FindGettext.cmake
index 99a2705055..c7dee5257b 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)