Build and Rebuild Projects
Build menu incorporates actions associated with building, cleaning, and installing projects. Table below describes build actions for CMake projects and Compilation Database projects with custom build targets and custom Run/Debug configurations.
Action | CMake | Compilation Database |
---|---|---|
Build Project | Builds the | For custom build targets: calls the Build tool of the first target. |
Build All in <selected profile> | Builds the You can configure the profiles in CMake settings and then select the desired one in the Run/Debug configuration switcher. | — |
Build <selected configuration> | Builds the selected Run/Debug configuration for CMake projects. | For custom Run/Debug configurations: calls the Build tool of the target specified in the selected configuration. |
Recompile <current file> | Compiles the currently opened file or a group of files, if selected in the Project View. When used for multiple files, the recompilation stops upon the first compilation failure. | Similar to CMake projects. |
Install | Runs | — |
Rebuild Project | Calls Clean for all the CMake profiles and then Build Project. | For custom build targets: calls the Clean tool, then the Build tool of the first target. |
Rebuild All in <selected profile> | Calls Clean and then Build All in <selected profile>. | — |
Rebuild <selected configuration> | Calls Clean and then Build <selected configuration>: | For custom Run/Debug configurations: calls the Clean and then the Build tool of the target specified in the selected configuration. |
Clean | Cleans the project by building the | For custom Run/Debug configurations: calls the Clean tool of the target specified in the selected configuration. |