I'm designing a library that can be compiled in two different modes depending on the definition of MODE1 or MODE2.
In order to test the two variants, I created two projects in Code::Blocks that use the same source files for the library.
Project1 is configured with -DMODE1 and Project2 is configured with -DMODE2.
If a make Project2 after making Project1, the library isn't compiled another time and is wrongly linked to the executable
in MODE1. The solution I use is to Rebuild Project2 to force the compilation of the library.
Is there a better method?