问题描述
在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.
这篇关于如何更改程序的工作目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!