Yes, this was the problem. I was running cmake .. -LA to check the cache
variables /before/ setting the toolchain. You can even see that the
CMAKE_TOOLCHAIN_FILE is not set.
It is working now, thank you.
On 17/07/2019 18:12, Robert Maynard wrote:
Is this with a clean build directory? The
Is this with a clean build directory? The toolchain file is ignored
once CMake has run and has done compiler detection.
On Wed, Jul 17, 2019 at 11:29 AM hex wrote:
>
> I specified my toolchain like so:
>
> 1cmake -DCMAKE_TOOLCHAIN_FILE=myToolchain.cmake ..
>
> and created a toolchain file in
I specified my toolchain like so:
1|cmake -DCMAKE_TOOLCHAIN_FILE=myToolchain.cmake .. |//
and created a toolchain file in|project/myToolchain.cmake|.
Using relative path CMake first looks relative to the top of the build
directory, then if not found there, relative to the top of the source