[CMake] Predownload

Florent Castelli florent.castelli at gmail.com
Mon Apr 17 18:03:36 EDT 2017


It is possible.

Nothing prevents you from calling execute_process to download as extract
your toolchain file when it is run. You probably want to check the
destination folder for a pre existing download though.

Then, you proceed on configuring Cmake to use it as usual.

/Florent

On Apr 17, 2017 14:11, "Zabel, Oliver" <oliverzabel at gmx.de> wrote:

Hi,



i’m developing Software for embedded Systems and my applications Need to
run on different target platforms. Until now we are build our Code with
make but i’d like to Switch to cmake. ATM we’re putting our Compiler
toolchains in our VCS to be able to produce the same binarys even after
years. Until now, there is only one toolchain include in a Project as
svn-external/git submodule. But i want to use toolchain-files with cmake.



Now here is my idea and i’d like to know whether this is possible with
cmake.

I have my Project root and in this Folder i’d like to have different
toolchain files for different Compilers. I’d like to exclude the Compilers
as external.

Now i’d like to build the cmake Cache by calling cmake with the required
toolchain file. Is it now somehow possible, to download the required
toolchain before the Cache is buidl up? If this would be possible, i could
dynamicly choose which toolchain i want to have – would be great for
Compiler / unit Tests as well.



Perhaps someone has a better idea to do this or even i using such a System
and give me a hint?



Thanks a lot!



Best regards,

Oliver

--

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170418/b814630a/attachment.html>


More information about the CMake mailing list