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

Diff of /trunk/solvers/ipopt/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1528 by jpye, Wed Jul 4 14:33:13 2007 UTC revision 1529 by jpye, Thu Jul 5 08:19:02 2007 UTC
# Line 1  Line 1 
1  Import('env')  Import('env')
2    
3  solver_env = env.Copy()  if env.get('WITH_IPOPT'):
4        solver_env = env.Copy()
5    
 if solver_env.get('WITH_IPOPT'):  
6      solver_env.AppendUnique(CPPPATH=[solver_env.get('IPOPT_CPPPATH')])      solver_env.AppendUnique(CPPPATH=[solver_env.get('IPOPT_CPPPATH')])
7    
8  libipopt = solver_env.SharedLibrary("ipopt",["asc_ipopt.c"]      libipopt = solver_env.SharedLibrary("ipopt",["asc_ipopt.c"]
9      ,LIBS = ['ascend','ipopt']          ,LIBS = ['ascend','ipopt']
10      ,LIBPATH = ['#']          ,LIBPATH = ['#']
11  )      )
12    
13  env.Depends(libipopt,env['libascend'])      env.Depends(libipopt,env['libascend'])
14    
15  env['extfns'] += [libipopt]      env['extfns'] += [libipopt]
16    
17  # vim: set syntax=python:  # vim: set syntax=python:

Legend:
Removed from v.1528  
changed lines
  Added in v.1529

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