CPack/IFW: Locate the archivegen utility

Fixes: #21427
This commit is contained in:
Erlend Egeberg Aasland
2020-11-12 06:10:49 -05:00
committed by Erlend E. Aasland
parent e23f9d8a02
commit 5ab75dd7dd
2 changed files with 14 additions and 0 deletions

View File

@@ -231,6 +231,10 @@ The following variables provide the locations of the QtIFW
command-line tools as discovered by the module :module:`CPackIFW`.
These variables are cached, and may be configured if needed.
.. variable:: CPACK_IFW_ARCHIVEGEN_EXECUTABLE
The path to ``archivegen``.
.. variable:: CPACK_IFW_BINARYCREATOR_EXECUTABLE
The path to ``binarycreator``.

View File

@@ -436,6 +436,16 @@ find_program(CPACK_IFW_DEVTOOL_EXECUTABLE
)
mark_as_advanced(CPACK_IFW_DEVTOOL_EXECUTABLE)
# Look for 'archivegen'
find_program(CPACK_IFW_ARCHIVEGEN_EXECUTABLE
NAMES archivegen
PATHS ${_CPACK_IFW_PATHS}
PATH_SUFFIXES ${_CPACK_IFW_SUFFIXES}
DOC "QtIFW archivegen command line client"
)
mark_as_advanced(CPACK_IFW_ARCHIVEGEN_EXECUTABLE)
#
## Next code is included only once
#