[poppler] glib/CMakeLists.txt
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jan 20 23:02:45 UTC 2022
glib/CMakeLists.txt | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 4d2fa9808f48733432ead92f7a45be2974bc1984
Author: Albert Astals Cid <aacid at kde.org>
Date: Wed Jan 19 15:27:50 2022 +0100
Fix glib compilation on MSVC
glib-mkenums is a python script and you can't tell Windows to run those,
so tell windows to run python with glib-mkenums as script to run
diff --git a/glib/CMakeLists.txt b/glib/CMakeLists.txt
index 45b275c8..7510e69e 100644
--- a/glib/CMakeLists.txt
+++ b/glib/CMakeLists.txt
@@ -39,11 +39,13 @@ set(poppler_glib_public_headers
)
find_program(GLIB2_MKENUMS glib-mkenums)
+find_program(GLIB2_MKENUMS_PYTHON python3)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/poppler-enums.h
- COMMAND ${GLIB2_MKENUMS}
+ COMMAND ${GLIB2_MKENUMS_PYTHON}
ARGS
+ ${GLIB2_MKENUMS}
--template poppler-enums.h.template
${poppler_glib_public_headers} > ${CMAKE_CURRENT_BINARY_DIR}/poppler-enums.h
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
@@ -53,8 +55,9 @@ add_custom_command(
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/poppler-enums.c
- COMMAND ${GLIB2_MKENUMS}
+ COMMAND ${GLIB2_MKENUMS_PYTHON}
ARGS
+ ${GLIB2_MKENUMS}
--template poppler-enums.c.template
${poppler_glib_public_headers} > ${CMAKE_CURRENT_BINARY_DIR}/poppler-enums.c
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
More information about the poppler
mailing list