From f28896fbde66eaca2c15f52a1aa05c299326d41a Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Mon, 21 Aug 2017 16:41:08 +0200 Subject: [PATCH] Fix cmake run on Ubuntu 16.04 (and possibly other distros) Apparently that platform trips over a missing newline at the end of the generated POTFILES.in.in file. Adding one allows cmake to complete configuration and appears to be fine on Fedora as well (although it worked fine without the newline too). Thanks go to Michael Jung for reporting this and proposing the fix. --- po/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 6b7ec7b8ba..69ce8d9a3f 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -105,6 +105,7 @@ FUNCTION(MAKE_GNUCASH_POTFILES) # here so it is easier for me to compare to the autotools # generated POTFILES.in STRING(REPLACE ";" "\n" SORT_IN "${FILES}") + STRING(APPEND SORT_IN "\n") FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/POTFILES.in.in "${SORT_IN}") EXECUTE_PROCESS(COMMAND "${PERL_EXECUTABLE}" "${CMAKE_SOURCE_DIR}/util/elegant-sort.pl"