How to set a default build directory OUTSIDE the source directory.

已回答

Please please please how do you set the default build dir to be outside the source directory?  It's incredibly frustrating that clion insists on polluting the source.  Every single time, I have to remember to change this manually (in the preferences which seem like they're for the whole of clion but are actually project-specific) and then it leaves a build in the source anyway, which I then have to clear out and make git incredibly slow as it deals with the hundreds of files sprinkled in there.

Thanks.

0

Hello!

File | Settings | Build, Execution, Deployment | CMake are indeed project-specific:

However you can configure one or several default CMake Profiles which will be used for all your new CLion projects in File | Other Settings | Settings for New Projects….

0

Settings for new projects moved to File | New Project Setup, but these do not seem to be applied when opening new projects from the command line (at least on linux, I have tried other OSes).

Is there any way around that, apart from opening new projects from the UI?

0

@Stephane Rouvillois please provide more details. How do you create and open the project in CLion from the command line? What CLion version do you use? What settings exactly are not applied?

0

请先登录再写评论。