[CMake] relative path to toolchain does not work

hex hex7c3 at gmail.com
Wed Jul 17 11:29:24 EDT 2019


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 
directory.

What means “the top of the source directory”? I placed the file in the 
source directory and receive:

1234|CMake Warning: Manually-specified variables were not used by the 
project: CMAKE_TOOLCHAIN_FILE|

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190717/f0d7d078/attachment.html>


More information about the CMake mailing list