From 03df605820f5abe0de84ed4cd639d362feafa0e8 Mon Sep 17 00:00:00 2001 From: "Brian P. Hinz" Date: Thu, 7 Aug 2014 23:52:19 -0400 Subject: [PATCH] Fix some cmake quoting and escape issues. The un-escaped parens generate a "Argument not separated from preceding token by whitespace" warning. The '--directory' argument might need to be quoted if PROJECT_SOURCE_DIR contains spaces. --- po/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 06a376ff..f36b15df 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -19,17 +19,18 @@ if (GETTEXT_XGETTEXT_EXECUTABLE) add_custom_target(translations_update ${GETTEXT_XGETTEXT_EXECUTABLE} - --directory ${PROJECT_SOURCE_DIR} + --directory="${PROJECT_SOURCE_DIR}" --output="${CMAKE_CURRENT_SOURCE_DIR}/tigervnc.pot" --default-domain=tigervnc --keyword=_ --keyword=N_ - --copyright-holder='TigerVNC Team and many others (see README.txt)' + --copyright-holder="TigerVNC Team and many others \(see README.txt\)" --msgid-bugs-address="tigervnc-devel@lists.sourceforge.net" --sort-output --no-location ${po_source} COMMENT "Updating tigervnc.pot" + VERBATIM ) endif (GETTEXT_XGETTEXT_EXECUTABLE) -- 2.39.5