Commit 3d36f0d7 authored by Patrick Storz's avatar Patrick Storz 🦄

CMake/po: Adjust intltool-update command to work on *nix

(cherry picked from commit 30e30518)
parent 840d975a
Pipeline #31716659 passed with stages
in 11 minutes and 43 seconds
......@@ -28,9 +28,9 @@ add_custom_target(inkscape_desktop ALL DEPENDS ${CMAKE_BINARY_DIR}/inkscape.desk
# update inkscape.pot
if(INTLTOOL-UPDATE)
add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/inkscape.pot
COMMAND sh -c "${INTLTOOL-UPDATE} --pot && mv untitled.pot ${CMAKE_CURRENT_SOURCE_DIR}/inkscape.pot"
COMMAND sh -c "${INTLTOOL-UPDATE} --pot --gettext-package=inkscape"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
)
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/inkscape.pot PROPERTIES GENERATED TRUE)
add_custom_target(inkscape_pot ALL DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/inkscape.pot)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment