From 4f7b96886ec2e98f270a9ec3c3509cd523fce7cc Mon Sep 17 00:00:00 2001 From: Matúš Kukan Date: Fri, 28 Feb 2014 10:39:19 +0100 Subject: Allow to build lpsolver based on CoinMP library. Change-Id: I0a3b2bd6744f6ccca0017cd1e06a4018f085445a --- sccomp/Library_solver.mk | 10 +++++++++- sccomp/Module_sccomp.mk | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'sccomp') diff --git a/sccomp/Library_solver.mk b/sccomp/Library_solver.mk index e1b2ca3fdfeb..c5531059bc79 100644 --- a/sccomp/Library_solver.mk +++ b/sccomp/Library_solver.mk @@ -35,11 +35,19 @@ $(eval $(call gb_Library_use_libraries,solver,\ $(eval $(call gb_Library_use_externals,solver,\ boost_headers \ - lpsolve \ + $(WITH_LPSOLVER) \ )) +ifeq ($(WITH_LPSOLVER),lpsolve) $(eval $(call gb_Library_add_exception_objects,solver,\ sccomp/source/solver/solver-lpsolve \ )) +else ifeq ($(WITH_LPSOLVER),coinmp) +$(eval $(call gb_Library_add_exception_objects,solver,\ + sccomp/source/solver/solver \ +)) + +endif + # vim: set noet sw=4 ts=4: diff --git a/sccomp/Module_sccomp.mk b/sccomp/Module_sccomp.mk index dd56f872ecac..d250e3b574de 100644 --- a/sccomp/Module_sccomp.mk +++ b/sccomp/Module_sccomp.mk @@ -19,7 +19,7 @@ $(eval $(call gb_Module_Module,sccomp)) -ifeq ($(ENABLE_LPSOLVE),TRUE) +ifneq ($(WITH_LPSOLVER),) $(eval $(call gb_Module_add_targets,sccomp,\ Library_solver \ -- cgit