[CMake] Multiple cross compiling

Robert Maynard robert.maynard at kitware.com
Tue Jan 9 10:31:12 EST 2018


Currently CMake only supports a single platform / toolchain per build directory.

If you need to build with multiple toolchains you will need to use
some form of a wrapper. Which can either be an external script that
invokes CMake multiple times or a CMake project that uses
ExternalProject (
https://cmake.org/cmake/help/latest/module/ExternalProject.html )


On Mon, Jan 8, 2018 at 2:44 PM, szymon zakrent <szymon.zakrent at gmail.com> wrote:
> Is there a way to make cmake cross compile automatically for multiple
> platforms at the same time without running cmake multiple times with
> different toolchains?
>
> --
>
> 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:
> https://cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list