<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 31, 2018 at 9:56 PM, Miroslav Kubiczek <span dir="ltr"><<a href="mailto:miroslav.kubiczek@gmail.com" target="_blank">miroslav.kubiczek@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi All,</div><div><br></div><div>I'm running cmake 3.10.1 and have this issue:<br><br>$ make package<br>[ 50%] Built target Rest<br>[100%] Built target UT_RestLibrary<br>Run CPack packaging tool...<br>CPack: Create package using RPM<br>CPack: Install projects<br>CPack: - Run preinstall target for: XXXCommonCppLibrary<br>CPack: - Install project: XXXCommonCppLibrary<br>CPack: Create package<br>CPackRPM: Will use USER specified spec file: /data/git/common-cpp-libs/<wbr>build/XXX-common-cpp-libs.spec<br>CMake Error at /usr/local/cmake-3.10.1-Linux-<wbr>x86_64/share/cmake-3.10/<wbr>Modules/CPackRPM.cmake:2703 (message):<br>  RPM package was not generated!<br>  /data/git/common-cpp-libs/<wbr>build/_CPack_Packages/Linux/<wbr>RPM<br>Call Stack (most recent call first):<br>  /usr/local/cmake-3.10.1-Linux-<wbr>x86_64/share/cmake-3.10/<wbr>Modules/CPackRPM.cmake:2774 (cpack_rpm_generate_package)<br><br><br>CPack Error: Error while execution CPackRPM.cmake<br>CPack Error: Problem compressing the directory<br>CPack Error: Error when generating package: XXX-common-cpp-libs<br>make: *** [package] Error 1<br></div><div><br></div><div>The rpm file is generated by those strange errors printed, make exits with an error code and jenkins build fails.<br></div><div>Does anyone know how to fix this?<br><br></div></div></blockquote></div><div class="gmail_extra"><br></div><div class="gmail_extra">A few things to check:</div><div class="gmail_extra"><br></div><ul><li>Have you given any install() commands in your project? The message above seems to be suggesting nothing was installed.<br></li><li>Are you overriding the .spec file rather than using the one CMake/CPack creates for you? If so, can you indicate why and maybe check its contents. Less likely this is the main issue, but worth covering anyway.</li></ul><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Craig Scott<br><div>Melbourne, Australia</div><div><a href="https://crascit.com" target="_blank">https://crascit.com</a><br></div><div><br></div><div>New book released: <a href="https://crascit.com/professional-cmake/" target="_blank">Professional CMake: A Practical Guide</a><br></div></div></div></div></div></div></div>
</div></div>