2017-04-03 12:30 GMT+02:00 Volker Enderlein <
volker.enderl...@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
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to