-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Suggestion] Allow disable automatic CMake configure when saving CMakeLists.txt #1259
Comments
+1 |
1 similar comment
+1 |
@fatfatson we should fix that, but did you try clicking the "Locate" button to tell the extension where the CMakeLists.txt file is? Or you can also set the |
@fatfatson or are you saying you have multiple folders added to a workspace and only one of them has a CMakeLists.txt (and it's not the one called 'pi' in your screenshot)? If that is the case, can you create a new issue for that since this issue is covering a different problem? Thank you! |
I agree this is critical to be able to opt out from a feature like this. In fact, I would have even done it as an opt in feature. A cmake run can have many unexpected side effects, it can call any command. |
Yes we are going to fix this for the soon upcoming 1.4.1 update release. |
Awesome, it's been tough when I do mass find replaces and get spammed with hundreds of "Configuration is already in progress." blasting my window. |
Not the OP but I also have this problem. In my case I have some folders added to the workspace that do not have |
Looking forward to being able to disable configure-on-save |
This should be fixed in CMake Tools 1.4.1 which was published today. |
@andreeis seems to have resolved the issues for me, thank you |
@andreeis Thank you! |
I got this issues too. How to enable/disable auto run cmake after save change Makelists.txt |
This pull request #1196 added new feature to automatic configure CMake when saving
CMakeLists.txt
.This is a great feature that integrates CMake projects with IntelliSense.
However, there were things I wanted to turn off this feature.
Specifically, when working on a project that has multiple
CMakeLists.txt
, running CMake configure every timeCMakeLists.txt
is saved will hinder my work.Imagine a project with the following structure:
My project has many source and header files, I have divided the project source file declarations in this way.
This project is using Qt. The problem is that Qt must perform the task of scanning the source files and generating additional source files (Qt MOC sources) every time CMake configure time.
I have to update the
CMakeLists.txt
twice to add the header and source files.CMake configure starts when the first
CMakeLists.txt
is saved, and it also starts scanning the source.I can't work on it until I've finished scanning the source.
Could you add an option to turn off the this feature to get around the problem?
I'm sure there are others besides me who would like to turn this feature off for projects that perform time-consuming tasks in the CMake configure step.
The text was updated successfully, but these errors were encountered: