Build menu option grayed out

Hi

I seem to have forgotten something related to install, since I cannot build anything in CLion currently, build menu options are greyed out. Toolchain settings look like this:
clion toolchains.png
Any help appreciated

8 comments
Comment actions Permalink

Hi Isak.

Could you please attach the screenshot with greyed-out settings?

0
Comment actions Permalink

Its the actual build menu, implying that there is some setting somewhere that i have missed? I have had CLion working fine before in a previous install of windows, but I guess I must have done something differently this time around.

clion build menu.png

0
Comment actions Permalink

Please select Run or Edit Configurations and choose the target. I suppose that after that everything will be ok.

0
Comment actions Permalink

Like here? Only option is all targets,selecting it and hitting apply does not enable build menu

clion target.png

0
Comment actions Permalink

Could you please describe how you created your project? Also please attach your CmakeLists.txt.

0
Comment actions Permalink

Well, this is somewhat strange but now it works. It might have been my naming the project "test". This apparently is not allowed, or so it informs me now.

Thank you very much for your help

0
Comment actions Permalink

TL;DR : Try deleting the .idea directory and reopening your project.

I had a similar problem, I had a test cmake project that I hadn't given a name to using the project() command.

Turns out on Linux that wasn't a problem but on OSX, I opened the project in CLion as usual, then cmake couldn't finish due to some cryptic error that was caused by the project not having a name.

I added the name, everything worked fine but the .idea directory must have contained some stains from the un-named project: Everything in the build menu was greyed out excepth the "build project" option.

I deleted .idea and re-opened the project and the options came back.

0
Comment actions Permalink

I still face this issue. Every time I am deleting the .idea and trying to build. Anything I need to update?

0

Please sign in to leave a comment.