From: HÃ¥vard F. Aasen Date: Sun, 14 Apr 2024 17:40:32 +0200 Subject: Only use test solver if data samples is found Conditionally enable 'USETESTSOLVER' if data samples has been found during configuring. Optimally, checking if data samples exists should happen at runtime, because of this, this patch is not suitable for upstream. Bug: https://github.com/coin-or/Osi/issues/184 Bug-Debian: https://bugs.debian.org/1068739 Forwarded: not-needed --- Osi/test/unitTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Osi/test/unitTest.cpp b/Osi/test/unitTest.cpp index 6e486ff..0536ff1 100644 --- a/Osi/test/unitTest.cpp +++ b/Osi/test/unitTest.cpp @@ -31,7 +31,9 @@ using namespace OsiUnitTest; set, is set up for exactly this sort of comparison. To take advantage of it, you'll need to edit this file and Makefile in order to get it to work. */ +#ifdef COIN_HAS_SAMPLE #define USETESTSOLVER +#endif /* Some convenient undef's, to make it easy to isolate a particular solver.