我已经为STxP70处理器设置了一个新的CMake工具链文件来交叉编译.我将文件放在我的工作目录中,只需使用以下命令调用cmake:
$ cmake -DCMAKE_TOOLCHAIN_FILE=STxP70_toolchain.cmake ...
Run Code Online (Sandbox Code Playgroud)
它工作正常,但我总是收到一条消息说:
System is unknown to cmake, create:
Platform/STxP70 to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
Run Code Online (Sandbox Code Playgroud)
有没有办法将工具链文件放在本地某处,以便CMake识别它而不是抱怨系统未知?我似乎无法在任何地方找到它.
提前致谢.