[CMake] Two toolchains simultaneously within the same project?
Alexander Neundorf
a.neundorf-work at gmx.net
Tue Jul 24 16:49:08 EDT 2012
On Thursday 12 July 2012, Ingolf Steinbach wrote:
> Hi,
>
> is it possible to use two different toolchains within the same
> project? This is what I want to achieve:
In general not.
> Most of the project uses a cross-compilation toolchain, so I'd call
> cmake with the appropriate CMAKE_TOOLCHAIN_FILE settings for the cross
> compiler.
>
> There is however one subdirectory which contains tools to be used on
> the host machine. I'd like to keep this subdirectory within the
> project (as these tools directly belong to the project) but would like
> cmake to use the native compiler instead -- ideally without having to
> explicitly call cmake again in that subdirectory.
Maybe you can use external_project() for that subdirectory ?
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120724/5f880d99/attachment.htm>
More information about the CMake
mailing list