[CMake] toolchain file and initial cache

Tom Deblauwe tom.deblauwe at traficon.com
Tue Dec 13 09:50:45 EST 2011


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?
Best regards,
Tom



More information about the CMake mailing list