(Visual Studio) Project build order/dependencies, Should they work ?
-
In Visual Studio (latest), C++ solution. I have a project like : project\app project\lib1 project\lib2 project\lib3 project\util
app <-- lib1 <-- util
<-- lib2
<-- lib3lib1 is dependant on util and app is dependant on lib1. util needs to be build before lib1 and lib1 before app. In the project dependencies window, I select lib1 and then check the util dependency. I've also looked at the project references and my lib1 is setup correctly to reference the util library. When rebuilding lib1, I expected util to be build before. There must be something I'm missing. (obviously) Thanks.
CI/CD = Continuous Impediment/Continuous Despair
-
In Visual Studio (latest), C++ solution. I have a project like : project\app project\lib1 project\lib2 project\lib3 project\util
app <-- lib1 <-- util
<-- lib2
<-- lib3lib1 is dependant on util and app is dependant on lib1. util needs to be build before lib1 and lib1 before app. In the project dependencies window, I select lib1 and then check the util dependency. I've also looked at the project references and my lib1 is setup correctly to reference the util library. When rebuilding lib1, I expected util to be build before. There must be something I'm missing. (obviously) Thanks.
CI/CD = Continuous Impediment/Continuous Despair
I assume you're using VS. I never had a problem with it once dependencies were set up correctly, although I migrated builds to CMake last year. The only thing I can think of is that if lib1 changed but not util, then the build can just start with lib1.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing. -
I assume you're using VS. I never had a problem with it once dependencies were set up correctly, although I migrated builds to CMake last year. The only thing I can think of is that if lib1 changed but not util, then the build can just start with lib1.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.Thanks, I'm in the process of physically moving libraries around (don't ask) and cleaning up the solution. When I rebuild from scratch, I just want to build the util library first so that all other libraries and eventually the app can build. I don't think I can change to cmake (that would require a revolution).
CI/CD = Continuous Impediment/Continuous Despair
-
Thanks, I'm in the process of physically moving libraries around (don't ask) and cleaning up the solution. When I rebuild from scratch, I just want to build the util library first so that all other libraries and eventually the app can build. I don't think I can change to cmake (that would require a revolution).
CI/CD = Continuous Impediment/Continuous Despair
CMake is integrated with VS now. Migrating to it (about 20 libraries) wasn't anywhere near as hard as I anticipated, and builds are much faster under Ninja. If you're interested, here's[^] an overview.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing. -
CMake is integrated with VS now. Migrating to it (about 20 libraries) wasn't anywhere near as hard as I anticipated, and builds are much faster under Ninja. If you're interested, here's[^] an overview.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.I'm working in an antediluvian organisation. Eventually we'll do it. (or not) :sigh:
CI/CD = Continuous Impediment/Continuous Despair
-
I'm working in an antediluvian organisation. Eventually we'll do it. (or not) :sigh:
CI/CD = Continuous Impediment/Continuous Despair
Every organization is antediluvian! :-D
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing. -
In Visual Studio (latest), C++ solution. I have a project like : project\app project\lib1 project\lib2 project\lib3 project\util
app <-- lib1 <-- util
<-- lib2
<-- lib3lib1 is dependant on util and app is dependant on lib1. util needs to be build before lib1 and lib1 before app. In the project dependencies window, I select lib1 and then check the util dependency. I've also looked at the project references and my lib1 is setup correctly to reference the util library. When rebuilding lib1, I expected util to be build before. There must be something I'm missing. (obviously) Thanks.
CI/CD = Continuous Impediment/Continuous Despair
Project dependencies can be changed by going to the Solution properties (right click on the solution explorer root of the tree)
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
-
Project dependencies can be changed by going to the Solution properties (right click on the solution explorer root of the tree)
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix