[英]How do I alter the full path of visual studio project so I can use it on multiple computers?
So for a class we have a couple of programs where we are using opengl.因此,对于一个类,我们有几个使用 opengl 的程序。 To make setup easier we started by cloning glitter https://github.com/Polytonic/Glitter .
为了使设置更容易,我们从克隆闪光开始https://github.com/Polytonic/Glitter 。 I then compliled it according to the instructions for visual studio 2017 and added my code to the project I am working on.
然后我根据 Visual Studio 2017 的说明编译它,并将我的代码添加到我正在处理的项目中。 I did this on my desktop computer but saved the files in onedrive.
我在台式计算机上执行此操作,但将文件保存在 onedrive 中。 When I open the same project on my laptop and try to build the project I get the error "the source directory D:/OneDrive/fall_2017/Glitter does not appear to contain CMakeLists.txt" and several other similar errors.
当我在笔记本电脑上打开同一个项目并尝试构建项目时,我收到错误“源目录 D:/OneDrive/fall_2017/Glitter 似乎不包含 CMakeLists.txt”和其他几个类似的错误。 On my laptop the directory to the files is C:/Users/Me/OneDrive/fall_2017/Glitter.
在我的笔记本电脑上,文件的目录是 C:/Users/Me/OneDrive/fall_2017/Glitter。 The visual studio program lists the full path as D:/OneDrive/fall_2017/Glitter which is the path of the folder on my desktop.
Visual Studio 程序将完整路径列为 D:/OneDrive/fall_2017/Glitter,这是我桌面上文件夹的路径。
Is there a way for me to change the filepath or is the issue with my cmake file?我有办法更改文件路径还是我的 cmake 文件有问题? Do I have to rebuild it for every computer I use it on?
我必须为每台使用它的计算机重建它吗? I don't know a whole lot about visual studio so I don't know what I need to change to get this to work.
我对视觉工作室知之甚少,所以我不知道我需要改变什么才能让它工作。
Turns out I have to rebuild on every computer.原来我必须在每台计算机上重建。 Thanks to those who left comments.
感谢那些留下评论的人。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.