更改远程系统上的cmake命令 [英] Change of cmake command on remote system
问题描述
我遇到的问题是,如果源目录的路径以"/CMakeList.txt",
I have met with problem that if path to source dir ends with "/CMakeList.txt",
结尾,则cmake在源目录中创建CMakeCache.txt。
then cmake create CMakeCache.txt in source dir.
有没有办法正确设置cmake命令?
Are there ways to set cmake command properly?
推荐答案
朋友,
欢迎来到MSDN论坛。
Welcome to MSDN forum.
你是否使用Cmake Gui,你引用的源目录是否类似上面的"D:/ TestCmake"?
Do you use the Cmake Gui, and does the source dir you refer to is something like 'D:/TestCmake' above?
如果是这样,请将source dir的路径设置为文件夹路径,如XXX:/ xxx / folderName而不是 XXX:/xxx/folderName/CMakeList.txt.
If so, please set the path to source dir as a folder path like XXX:/xxx/folderName instead of XXX:/xxx/folderName/CMakeList.txt.
之后,"在哪里构建二进制文件"。 path是生成CMakeCache.txt的地方
After that, the "where to build the binaries" path is where to generate your CMakeCache.txt
希望它有所帮助。如果它有用,请提供反馈告诉我们。
Hope it helps. And if it's helpful, please give a feedback to let us know.
期待您的回复:)
最好的问候
Lance
这篇关于更改远程系统上的cmake命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!