From 9f05df6461257954f7fd7245c34dccabb0985c23 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Tue, 4 Mar 2008 18:40:21 +0000 Subject: [PATCH] use C++ IPOpt [[Imported from SVN: r2027]] --- Makefile.am | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9f3937a2..db5fa3d8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -9,9 +9,18 @@ LAPACKPP_CPPFLAGS = -I/home/haile/sander/lapack++-inst/include/lapackpp LAPACKPP_LDFLAGS = -L/home/haile/sander/lapack++-inst/lib -llapackpp # Include and linker paths to the old fortran IPOpt library -IPOPT_DIR = /home/haile/sander/COIN/Ipopt -IPOPT_LDADD = -L$(IPOPT_DIR)/lib -lipopt -llapack -lblas -lg2c -IPOPT_CPPFLAGS = -I$(IPOPT_DIR)/IPOPT/include -DHAVE_IPOPT +#IPOPT_DIR = /home/haile/sander/COIN/Ipopt +#IPOPT_LDADD = -L$(IPOPT_DIR)/lib -lipopt -llapack -lblas -lg2c +#IPOPT_CPPFLAGS = -I$(IPOPT_DIR)/IPOPT/include -DHAVE_IPOPT + +# Include and linker paths to the new C++ IPOpt library +IPOPT_CPP_DIR = /home/haile/sander/CoinIpopt/build +IPOPT_LDADD = -L$(IPOPT_CPP_DIR)/lib -lipopt -llapack -lblas -lgfortran +IPOPT_CPPFLAGS = -I$(IPOPT_CPP_DIR)/include -DHAVE_IPOPT_CPP + +# Hack around the insufficient build system: add to references +# to ag-common by hand +AM_CPPFLAGS += -I../../dune/ag-common noinst_PROGRAMS = staticrod staticrod2 rod3d dirneucoupling -- GitLab