User forums > Using Code::Blocks

Exclude Projects from Workspace Rebuild?

(1/2) > >>

aphirst:
I have a workspace which contains the projects (names replaced) "myproj", "dep1" and "dep2". In the settings for "myproj", both "dep"s are marked as Project Dependencies. This means that if there are changes to source files in either "dep", the "dep" is also built whenever I build the main project. So far, so good.

However, whenever I click "rebuild" on the Compiler toolbar in the main C::B window, all three projects are rebuilt, not just the active "myproj". The dependencies are somewhat large, especially compared to my project, so it seems excessive to do this. What I would like to do is have the "rebuild" button only rebuild my active project, not the entire workspace. Is this possible somehow? I've tried to work it out in the settings but haven't had much luck, and similarly asked in the IRC channel to no avail. Searching the forums for keywords like "exclude project workspace rebuild" didn't yield anything relevant.

If anyone wants me to clarify my question, feel free to ask. :)

cacb:
Good point. I have seen this also. An special option to rebuild a single project but not its dependencies would be useful.

stahta01:
Remove the project dependencies.

I prefer to use the external dependencies without using any project dependencies.

Tim S.
 

stahta01:

--- Quote from: cacb on March 01, 2017, 06:09:26 pm ---Good point. I have seen this also. An special option to rebuild a single project but not its dependencies would be useful.

--- End quote ---

Create a separate workspace with no project dependencies.

Tim S.

Commaster:
What happens, if you right-click the project on the side panel and select Rebuild there?

Navigation

[0] Message Index

[#] Next page

Go to full version