How do I change the working directory for my program

后端 未结 3 971
孤城傲影
孤城傲影 2020-11-29 11:26

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.

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-29 11:51

    This can be changed via the Run -> Edit Configurations... dialog, just like Idea.

    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.

提交回复
热议问题