Page 1 of 1

does the order in build order make a difference?

Posted: Wed Jul 22, 2020 2:25 pm
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

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

Posted: Sun Jul 26, 2020 9:12 am
by eranif
in the build order, you should see an option to move them up or down, have you tried that?

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

Posted: Wed Jul 29, 2020 10:51 am
by amwink
Yes, in the build order dialog they are in the order AB. But then they are compiled in the order BA.

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

Posted: Thu Jul 30, 2020 8:26 pm
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