gnucash master: Fix cmake run on Ubuntu 16.04 (and possibly other distros)

Geert Janssens gjanssens at code.gnucash.org
Mon Aug 21 10:41:18 EDT 2017


Updated	 via  https://github.com/Gnucash/gnucash/commit/f28896fb (commit)
	from  https://github.com/Gnucash/gnucash/commit/3e1a1b26 (commit)



commit f28896fbde66eaca2c15f52a1aa05c299326d41a
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Mon Aug 21 16:41:08 2017 +0200

    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 <gnucash-devel at mailinglists.mjung.org> for reporting this and proposing the fix.

diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
index 6b7ec7b..69ce8d9 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"



Summary of changes:
 po/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)



More information about the gnucash-changes mailing list