[CMake] Custom RPM build failing for want of RPMBUILD_FLAGS

Eric Noulard eric.noulard at gmail.com
Thu Mar 28 07:48:05 EDT 2019


Le ven. 22 mars 2019 à 18:30, Stewart, Robert <Robert.Stewart at sig.com> a
écrit :

> Have a look at the code I quoted from CPackRPM.cmake:
>
> if(CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE OR NOT
> CPACK_RPM_USER_BINARY_SPECFILE)
>       set(RPMBUILD_FLAGS "-bb")
>
> If CPACK_RPM_USER_BINARY_SPECFILE is defined, then RPMBUILD_FLAGS is *not*
> set to -bb.
>

Sorry I missed your last answer.
My link to up-to-date code:
https://gitlab.kitware.com/cmake/cmake/blob/master/Modules/Internal/CPack/CPackRPM.cmake#L1658

shows that "-bb" is always set.

This was fixed some time ago:
https://gitlab.kitware.com/cmake/cmake/commit/574c81e28cef6737adc1619ce3b44b43bdcf308b
CMake 3.8.0 and after should include this fix.

-- 
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190328/3cd40b65/attachment.html>


More information about the CMake mailing list