Fix build with cmake older than 3.18

3.18 introduced 'cmake -E cat', but we still have to support
versions starting from 3.14.
This commit is contained in:
Geert Janssens 2021-12-17 09:36:26 +01:00
parent 227159d812
commit d95a15fb43

View File

@ -30,7 +30,7 @@ set(gschema_preftrans_files ${local_preftrans_files} CACHE INTERNAL "files descr
# following GSettings schema changes between gnucash releases
add_custom_command(
OUTPUT ${DATADIR_BUILD}/${PROJECT_NAME}/pref_transformations.xml
COMMAND cat ${gschema_preftrans_files} > ${DATADIR_BUILD}/${PROJECT_NAME}/pref_transformations.xml
COMMAND env cat ${gschema_preftrans_files} > ${DATADIR_BUILD}/${PROJECT_NAME}/pref_transformations.xml
DEPENDS ${gschema_preftrans_files}
)