does the order in build order make a difference?

General questions regarding the usage of CodeLite
amwink
CodeLite Enthusiast
Posts: 27
Joined: Mon Jun 08, 2020 4:04 pm
Genuine User: Yes
IDE Question: c++
Contact:

does the order in build order make a difference?

Post by amwink »

My workspace has 3 (Cmake) projects:
-- project A, a shared library for compression stuff;
-- project B, a shared library that is an interface between the compression library and reading data files;
-- project C, a program that reads and writes compressed files in this format.

In the build order for project B, I have put project A, because it is a dependency for B.
In the build order for project C, I have put A first and then B.

When I compile C then I see that B is compiled first and then A.
This is the other way round than I specified in the Build Order dialog (and alphabetically A comes before B as well).

I tried switching the build order around in the dialog but B is always compiled before A.
The order that they were created (A first then B) or put in the build order (tried both) does not seem to change this.

In this case of shared libraries it does not really matter, but is there a way to do influence the build order as in A then B then C?

My CodeLite version is 13.0.7, installed on Ubuntu 18.04 via APT and using g++ 7.5.0
Last edited by amwink on Wed Jul 29, 2020 10:55 am, edited 3 times in total.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: does the order in build order make a difference?

Post by eranif »

in the build order, you should see an option to move them up or down, have you tried that?
Make sure you have read the HOW TO POST thread
amwink
CodeLite Enthusiast
Posts: 27
Joined: Mon Jun 08, 2020 4:04 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: does the order in build order make a difference?

Post by amwink »

Yes, in the build order dialog they are in the order AB. But then they are compiled in the order BA.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: does the order in build order make a difference?

Post by eranif »

I just noticed that it's a CMake project.
I need to check if this is honored

Please open an issue on GitHub
Make sure you have read the HOW TO POST thread
Post Reply