On Tuesday 13 December 2011, Tom Deblauwe wrote:
> Hello,
> 
> I have a question: Using the -C option you can specify an initial cache
> file. I have this case where I like to specify some initial cache
> values, but also a toolchain file. Can I combine this and add a line in
> the initial cache file:
> 
> set(CMAKE_TOOLCHAIN_FILE "toolchain.cmake" CACHE PATH "Toolchain file")
> 
> Will this work the same?

I haven't tried, but I think this should work.

You can check in the build whether CMAKE_SYSTEM_NAME and CMAKE_CROSSCOMPILING 
are set as you expect, if so, everything should be fine.

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

Reply via email to