[poppler] CMakeLists.txt

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Sep 2 13:30:49 UTC 2022


 CMakeLists.txt |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9e0d0e65261384bde8cb7f1932738bbeb19d3292
Author: Carlo Cabrera <30379873+carlocab at users.noreply.github.com>
Date:   Thu Sep 1 13:18:39 2022 +0800

    Fix `sed` invocation.
    
    The current `sed` call works only for GNU sed. We can fix that by using
    the `-e` flag.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index ec36673d..b85add05 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -542,7 +542,7 @@ if (GPERF AND SED AND RUN_GPERF_IF_PRESENT)
         add_custom_command(OUTPUT poppler/${input}.c
                        COMMAND ${GPERF} poppler/${input}.gperf > ${CMAKE_CURRENT_BINARY_DIR}/poppler/${input}.c
                        COMMAND ${GPERF} poppler/${input}.gperf > ${CMAKE_CURRENT_SOURCE_DIR}/poppler/${input}.pregenerated.c
-                       COMMAND ${SED} -i "s#${GPERF}#gperf#" ${CMAKE_CURRENT_SOURCE_DIR}/poppler/${input}.pregenerated.c
+                       COMMAND ${SED} -i -e "s#${GPERF}#gperf#" ${CMAKE_CURRENT_SOURCE_DIR}/poppler/${input}.pregenerated.c
                        COMMAND clang-format -i ${CMAKE_CURRENT_SOURCE_DIR}/poppler/${input}.pregenerated.c || true
                        DEPENDS poppler/${input}.gperf
                        WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})


More information about the poppler mailing list