[poppler] CMakeLists.txt

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 16 17:15:12 UTC 2022


 CMakeLists.txt |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 727b334b00e1e298badcca94700369a13846f822
Author: Fabian Keßler <fabian_kessler at gmx.de>
Date:   Thu Jun 16 17:15:11 2022 +0000

    Run gperf as the full path found by find_program
    
    instead of relying it being in the path

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5524f272..056b7bfb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -539,8 +539,8 @@ endif()
 if (GPERF AND RUN_GPERF_IF_PRESENT)
     macro(ADD_GPERF_FILE input)
         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 ${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 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