summaryrefslogtreecommitdiff
path: root/sccomp/Library_solver.mk
diff options
context:
space:
mode:
Diffstat (limited to 'sccomp/Library_solver.mk')
-rw-r--r--sccomp/Library_solver.mk10
1 files changed, 9 insertions, 1 deletions
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: