mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
Don't rely on glib-compile-resources being on the path.
This commit is contained in:
parent
52380d11d2
commit
2667ee7d98
@ -75,15 +75,18 @@ execute_process(
|
||||
COMMAND
|
||||
${PKG_CONFIG_EXECUTABLE} gio-2.0 --variable glib_compile_resources
|
||||
OUTPUT_VARIABLE
|
||||
GLIB_COMPILE_RESOURCES_EXECUTABLE
|
||||
GLIB_COMPILE_RESOURCES_NAME
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
|
||||
find_program(GLIB_COMPILE_RESOURCES_EXECUTABLE ${GLIB_COMPILE_RESOURCES_NAME})
|
||||
|
||||
# Get the dependencies of the gresource
|
||||
|
||||
execute_process(
|
||||
OUTPUT_VARIABLE
|
||||
gr_files
|
||||
COMMAND ${GLIB_COMPILE_RESOURCES_EXECUTABLE}
|
||||
COMMAND "${GLIB_COMPILE_RESOURCES_EXECUTABLE}"
|
||||
--sourcedir=${CMAKE_CURRENT_SOURCE_DIR}
|
||||
--generate-dependencies
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/gnucash-gresources.xml
|
||||
@ -94,7 +97,7 @@ string (REPLACE "\n" ";" gresource_files ${gr_files})
|
||||
add_custom_command(
|
||||
OUTPUT gnucash-gresources.c
|
||||
COMMAND
|
||||
${GLIB_COMPILE_RESOURCES_EXECUTABLE}
|
||||
"${GLIB_COMPILE_RESOURCES_EXECUTABLE}"
|
||||
--target=gnucash-gresources.c
|
||||
--sourcedir=${CMAKE_CURRENT_SOURCE_DIR}
|
||||
--generate-source
|
||||
|
Loading…
Reference in New Issue
Block a user