如何更改我的程序的工作目录 [英] How do I change the working directory for my program
问题描述
在 Mac 上试用 Clion EAP.如何更改已启动程序的当前工作目录?它似乎被设置为二进制文件的输出目录.
Trying out the Clion EAP on the Mac. How does one change the current working directory for a launched program? It appears to be set to the output directory of the binaries.
推荐答案
这可以通过 Run ->编辑配置...
对话框,就像 Idea 一样.
This can be changed via the Run -> Edit Configurations...
dialog, just like Idea.
需要对 CMakeLists.txt
的大部分配置进行更改的组合让我很困惑,我一直在寻找一种方法来更改它,但至少有一点与其他IDE一致,很好.
The mix of needing to make changes to CMakeLists.txt
for so much of the configuration just threw me, and I've been hunting for a way to change it there, but this bit at least is consistent with the other IDEs, which is good.
希望他们能以类似的方式改进其余的项目设置.
Hopefully they'll improve the rest of the Project Settings in a similar fashion.
这篇关于如何更改我的程序的工作目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!