[CMake] toolchain file and initial cache
Alexander Neundorf
a.neundorf-work at gmx.net
Tue Dec 13 14:58:41 EST 2011
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
More information about the CMake
mailing list