How can I disable CLion builds *entirely*

Answered

I'm working on Windows.

I'm working on a project that I *cannot* build with CLion.  I only want to view and edit code in CLion - I *never* want to build with CLion or CMake.

When I open my project, CLion immediately launches CMake.

For the life of me, I haven't been able to find a setting to entirely disable building.  Does anyone else know where this setting is, or perhaps if it doesn't exist?

0
3 comments

Hi Patrick!

With C++, most of the project model information has to be queried from the build system (or specified manually in a kind of a tedious way), so the build system integration is basically essential for truly smart code features.

CLion does not provide its own project model for your code but supports the following formats:

It means that your project should be based on one of these formats so that you could get code insight features working for it in CLion.

0

So, if I understand correctly, CLion is *not* parsing and understanding the CMakeList.txt file itself - it's executing CMake and then parsing the result?

0

Yes, you're right. Therefore CLion needs to load the project in order to provide smart code features.

0

Please sign in to leave a comment.