且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从单独的文件下载一个工具链的交叉编译在cmake?

更新时间:2023-10-22 23:30:34

ExternalProject_add 执行所有步骤时间

ExternalProject_add executes all steps at build time, not at configuration time.

对于下载文件,您可以使用档案 (DOWNLOAD ...)命令。对于来自arhive的提取文件,只需使用适当的命令 execute_process

For download file you can use file(DOWNLOAD ...) command. For extract files from arhive just use execute_process with appropriate command.