Skip to content

Commit

Permalink
Make it possible to build old style without Glpk
Browse files Browse the repository at this point in the history
  • Loading branch information
tkralphs committed Dec 26, 2021
1 parent f134605 commit 1fa082b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Attic/CbcSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8659,9 +8659,15 @@ int CbcMain1(int argc, const char *argv[],
keepImportNames != 0,
allowImportErrors != 0);
} else if (gmpl > 0) {
#ifdef COINUTILS_HAS_GLPK
status = lpSolver->readGMPL(fileName.c_str(),
(gmpl == 2) ? gmplData.c_str() : NULL,
keepImportNames != 0);
#else
std::cout << "Cbc was not built with GMPL support. Exiting.\n"
<< std::endl;
abort();
#endif
} else {
#ifdef KILL_ZERO_READLP
status = clpSolver->readLp(fileName.c_str(), lpSolver->getSmallElementValue());
Expand Down

0 comments on commit 1fa082b

Please sign in to comment.