From: Vincent van Ravesteijn Date: Mon, 22 Aug 2011 11:01:41 +0000 (+0000) Subject: CMake: Simplify the fix for the path to gettext-tools. The problem was that the first... X-Git-Tag: 2.1.0beta1~2803 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2ba3007e4b1e81f9af5f12e6445b188249f40685;p=features.git CMake: Simplify the fix for the path to gettext-tools. The problem was that the first " was in the wrong place. see r39491 and thanks Kornel. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39505 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/development/cmake/modules/FindLyXGettext.cmake b/development/cmake/modules/FindLyXGettext.cmake index 4bb668de9a..33d906bd36 100755 --- a/development/cmake/modules/FindLyXGettext.cmake +++ b/development/cmake/modules/FindLyXGettext.cmake @@ -12,10 +12,11 @@ # ALL option is used, the translations will also be created when # building the default target. -FIND_PROGRAM(GETTEXT_MSGMERGE_EXECUTABLE msgmerge HINTS ${GNUWIN32_DIR}/gettext-tools) -FIND_PROGRAM(GETTEXT_MSGFMT_EXECUTABLE msgfmt HINTS ${GNUWIN32_DIR}/gettext-tools) -FIND_PROGRAM(GETTEXT_XGETTEXT_EXECUTABLE xgettext HINTS ${GNUWIN32_DIR}/gettext-tools) -FIND_PROGRAM(GETTEXT_MSGUNIQ_EXECUTABLE msguniq HINTS ${GNUWIN32_DIR}/gettext-tools) +set(hints HINTS "${GNUWIN32_DIR}/gettext-tools") +FIND_PROGRAM(GETTEXT_MSGMERGE_EXECUTABLE msgmerge ${hints}) +FIND_PROGRAM(GETTEXT_MSGFMT_EXECUTABLE msgfmt ${hints}) +FIND_PROGRAM(GETTEXT_XGETTEXT_EXECUTABLE xgettext ${hints}) +FIND_PROGRAM(GETTEXT_MSGUNIQ_EXECUTABLE msguniq ${hints}) MACRO(GETTEXT_CREATE_TRANSLATIONS _potFile _firstPoFile)