Commit e013085a authored by Romain Pacanowski's avatar Romain Pacanowski

fixing compilation issue with rational fitter matlab

parent 57a93f98
......@@ -7,18 +7,17 @@ build_lib = False
conf = Configure(env)
if 'MATLAB_LIB' in env and conf.CheckLib(env['MATLAB_LIB'],
language='c++', header='engine.h'):
build_lib = True
if 'MATLAB_LIB' in env and 'MATLAB_INC' in env and 'MATLAB_DIR' in env:
env.AppendUnique(CPPPATH = env['MATLAB_INC'])
env.AppendUnique(LIBPATH = env['MATLAB_DIR'])
env.AppendUnique(LIBS = env['MATLAB_LIB'])
build_lib = conf.CheckLibWithHeader(env['MATLAB_LIB'], language='c++', header='engine.h')
else:
W.warn(W.DependencyWarning, "unable to find MATLAB for Rational Fitter")
env = conf.Finish()
if build_lib:
env.AppendUnique(CPPPATH = env['MATLAB_INC'])
env.AppendUnique(LIBPATH = env['MATLAB_DIR'])
env.AppendUnique(LIBS = env['MATLAB_LIB'])
env.AppendUnique(LIBS = env['PLUGIN_LIB'])
sources = ['rational_fitter.cpp']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment