libcheck / check

A unit testing framework for C
GNU Lesser General Public License v2.1
1.07k stars 209 forks source link

Question: make subunit dependency explicit #324

Open dernasherbrezon opened 3 years ago

dernasherbrezon commented 3 years ago

Currently subunit dependency checked during the configuration step. If subunit exists, then libcheck will have a dependency on it. If not, then there will be no dependency.

However this might bring some instability to the build (builds will be not reproducable). Consider the scenario:

Another downside of the current approach: subunit is linked even if it was not used (transitive dependency).

I was wondering if the following scenario makes sense:

mikkoi commented 3 years ago

I agree. This needs to be added to CMake build.