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
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
