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|

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

Reply via email to