[CMake] [Dev] CMake 2.5-20070519 and tool chain support

Alexander Neundorf a.neundorf-work at gmx.net
Tue May 22 13:12:06 EDT 2007


Hi Trevor, 

On Tuesday 22 May 2007 11:34, Trevor Kellaway wrote:
...
> > > this, but no. Trying
> > > "-DCMAKE_TOOLCHAIN_FILE:string=Toolchain-Freescale-HC12.cmake" also
> >
> > I didn't test it yet under Windows, but actually relative
> > paths should work.
> > Does prepending ".\" help ?
>
> I think you misunderstood me, the relative path to the source tree is
> fine, it is the search for the contents of CMAKE_TOOLCHAIN_FILE
> "Toolchain-Freescale-HC12" that only works with a full path.
>
> I want to create a directory with multiple Toolchain-*-* in it and not
> have to specify a full path on the CMake command line, and let CMake
> process it as if the file was in the CModule directory.


cmake -DCMAKE_MODULE_PATH=<dir> -DCMAKE_TOOLCHAIN_FILE=Toolchain-HC12 <src>

should work.

Bye
Alex


More information about the CMake mailing list