Make file paths in pot-file relative to project directory.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
15a6436597
commit
af58d6e35a
@ -1,5 +1,6 @@
|
||||
set(potfile "${PROJECT_SOURCE_DIR}/translations/${PROJECT_NAME}.pot")
|
||||
file(GLOB po_src_files "../src/*pp")
|
||||
file(GLOB po_src_files_relative RELATIVE "${PROJECT_SOURCE_DIR}" "../src/*pp")
|
||||
|
||||
add_custom_command(OUTPUT ${potfile}
|
||||
COMMAND "${XGETTEXT_CMD}"
|
||||
@ -13,7 +14,7 @@ add_custom_command(OUTPUT ${potfile}
|
||||
"--from-code=utf-8"
|
||||
"--foreign-user"
|
||||
"--output=${potfile}"
|
||||
${po_src_files}
|
||||
${po_src_files_relative}
|
||||
DEPENDS "${po_src_files}"
|
||||
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
|
||||
COMMENT "Extract translatable messages to ${potfile}")
|
||||
@ -21,6 +22,7 @@ add_custom_target(${PROJECT_NAME}_pot
|
||||
ALL DEPENDS ${potfile})
|
||||
|
||||
unset(po_src_files)
|
||||
unset(po_src_files_relative)
|
||||
|
||||
file(GLOB po_files "*.po")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user