[CMake] Packaging issues

Domen Vrankar domen.vrankar at gmail.com
Mon Apr 3 06:54:50 EDT 2017


2017-04-03 12:30 GMT+02:00 Volker Enderlein <
volker.enderlein at ifm-chemnitz.de>:

> But when I checked the CPack*Config.cmake files none of the entries above
> are referenced. After running the `cmake -G "Visual Studio 14 2015 Win64"
> ..\TestProject` a second time everything is fine; the entries are
> referenced in CPack*Config.cmake files and all three installers can be
> built.
>
> So I really get stuck at this point.
>
>
> Any ideas what could be the issue and how to avoid it?
>

>From what you have described my best guess would be that "include( CPack )"
is called before the variables are set and that second configure step then
sets variables in CPack.cmake script correctly since their values are
already cached by the first configure step. If I'm correct then calling
"include( CPack )" at the end - this is the intended use - of the script
would solve your problem.

Regards,
Domen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170403/cb354588/attachment.html>


More information about the CMake mailing list