Re: [CMake] relative path to toolchain does not work

2019-07-19 Thread hex
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

Re: [CMake] relative path to toolchain does not work

2019-07-17 Thread Robert Maynard
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

[CMake] relative path to toolchain does not work

2019-07-17 Thread hex
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