/[ascend]/trunk/solvers/ipopt/SConscript
ViewVC logotype

Annotation of /trunk/solvers/ipopt/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1547 - (hide annotations) (download)
Mon Jul 23 06:25:49 2007 UTC (15 years, 4 months ago) by jpye
File size: 409 byte(s)
Fixed build of asc_ipopt.c. Small comment added in relman. IPOPT_LIB replaced by IPOPT_LIBS due to multiple linking requirement of that library.
1 jpye 1528 Import('env')
2    
3 jpye 1529 if env.get('WITH_IPOPT'):
4     solver_env = env.Copy()
5 jpye 1528
6     solver_env.AppendUnique(CPPPATH=[solver_env.get('IPOPT_CPPPATH')])
7    
8 jpye 1547 solver_env.Append(
9     CPPDEFINES=[
10     'ASC_WITH_IPOPT'
11     ]
12     )
13    
14 jpye 1529 libipopt = solver_env.SharedLibrary("ipopt",["asc_ipopt.c"]
15     ,LIBS = ['ascend','ipopt']
16     ,LIBPATH = ['#']
17     )
18 jpye 1528
19 jpye 1529 env.Depends(libipopt,env['libascend'])
20 jpye 1528
21 jpye 1529 env['extfns'] += [libipopt]
22 jpye 1528
23     # vim: set syntax=python:

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22