From dca468e1de291aa71d84c635a9b6aeb4ee685dc2 Mon Sep 17 00:00:00 2001 From: Craig Scott Date: Fri, 31 May 2024 15:00:14 +1000 Subject: Help: Improve and clarify wording for CPACK__EXECUTABLE Fixes: #24253 --- Modules/CPack.cmake | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/Modules/CPack.cmake b/Modules/CPack.cmake index 813ac3c..ed9a7a5 100644 --- a/Modules/CPack.cmake +++ b/Modules/CPack.cmake @@ -478,27 +478,30 @@ The following variables are for advanced uses of CPack: .. versionadded:: 3.25 Specify the ``readelf`` executable path used by CPack. - The default value will be ``CMAKE_READELF`` when set. Otherwise, - the default value will be empty and CPack will use :command:`find_program` - to determine the ``readelf`` path when needed. + The default value will be taken from the ``CMAKE_READELF`` variable, if set, + which may be populated by an internal CMake module. If ``CMAKE_READELF`` + is not set, CPack will use :command:`find_program` to determine the + ``readelf`` path when needed. .. variable:: CPACK_OBJCOPY_EXECUTABLE .. versionadded:: 3.25 Specify the ``objcopy`` executable path used by CPack. - The default value will be ``CMAKE_OBJCOPY`` when set. Otherwise, - the default value will be empty and CPack will use :command:`find_program` - to determine the ``objcopy`` path when needed. + The default value will be taken from the ``CMAKE_OBJCOPY`` variable, if set, + which may be populated by an internal CMake module. If ``CMAKE_OBJCOPY`` + is not set, CPack will use :command:`find_program` to determine the + ``objcopy`` path when needed. .. variable:: CPACK_OBJDUMP_EXECUTABLE .. versionadded:: 3.25 Specify the ``objdump`` executable path used by CPack. - The default value will be ``CMAKE_OBJDUMP`` when set. Otherwise, - the default value will be empty and CPack will use :command:`find_program` - to determine the ``objdump`` path when needed. + The default value will be taken from the ``CMAKE_OBJDUMP`` variable, if set, + which may be populated by an internal CMake module. If ``CMAKE_OBJDUMP`` + is not set, CPack will use :command:`find_program` to determine the + ``objdump`` path when needed. #]=======================================================================] -- cgit v0.12