Append to string the pre-cmake-3.4 way.

This commit is contained in:
John Ralls
2017-09-06 14:51:26 -07:00
parent 77d5d6380b
commit e1ba2ed4bd

View File

@@ -105,7 +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")
SET(SORT_IN "${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"