[CMake] Improve CPackRPM debug output

Stewart, Robert Robert.Stewart at sig.com
Thu Mar 7 08:52:51 EST 2019


On Thursday, March 07, 2019 8:49 AM, I wrote:
>
> I suggest adding the following to CPackRPM.cmake [snip]:
>
>     if(CPACK_RPM_PACKAGE_DEBUG OR CPACK_RPMBUILD_EXEC_RESULT)
>       message("CPackRPM:Debug: running
>     \"${RPMBUILD_EXECUTABLE}\" ${RPMBUILD_FLAGS}
>         --define \"%_topdir ${CPACK_RPM_DIRECTORY}\"
>         --buildroot
> \"%_topdir/${CPACK_PACKAGE_FILE_NAME}${CPACK_RPM_PACKAGE_COMP
> ONENT_PART_PATH}\"
>         --target \"${CPACK_RPM_PACKAGE_ARCHITECTURE}\"
>         \"${CPACK_RPM_BINARY_SPECFILE}\"
>     in
> \"${CPACK_TOPLEVEL_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}${CPA
> CK_RPM_PACKAGE_COMPONENT_PART_PATH}\"")
>     endif()

I failed to note that the leading whitespace is significant in the message() call.  It produces more readable output, though it doesn't eliminate all line wrapping.

___
Rob

________________________________

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.


More information about the CMake mailing list