Commit 1e0f89b5 authored by Maude Le Jeune's avatar Maude Le Jeune
Browse files

eigen3 option

parent 3be2625f
......@@ -12,6 +12,7 @@ def options(ctx):
ctx.add_option('--with_gsl', action='store', default='/usr', help='location of gsl')
ctx.add_option('--with_fftw3', action='store', default='/usr', help='location of fftw3')
ctx.add_option('--with_numpy_core', action='store', default=None, help='location of numpy core headers')
ctx.add_option('--with_eigen', action='store', default="/usr/include/eigen3", help='location of eigen headers')
ctx.tool_options('compiler_cxx')
ctx.tool_options('python')
......@@ -40,8 +41,8 @@ def configure(ctx):
print('→ find cfitsio from cfitsio_prefix')
ctx.env["CFITSIO_PREFIX"] = str(Options.options.cfitsio_prefix)
ctx.env["CFITSIO_EXT_LIB"] = ctx.env["CFITSIO_PREFIX"]
ctx.env["CFITSIO_EXT_INC"] = ctx.env["CFITSIO_PREFIX"]
ctx.env["CFITSIO_EXT_LIB"] = ctx.env["CFITSIO_PREFIX"]+"/lib"
ctx.env["CFITSIO_EXT_INC"] = ctx.env["CFITSIO_PREFIX"]+"/include"
ctx.env['CXXFLAGS'].append("-I"+ctx.env["CFITSIO_EXT_INC"])
ctx.check(header_name=['fitsio.h'],compile_mode='cxx', mandatory=True)
ctx.check_cxx(lib=['cfitsio'], libpath=ctx.env["CFITSIO_EXT_LIB"], uselib_store='cfitsio', mandatory=True)
......@@ -57,7 +58,7 @@ def configure(ctx):
except:
ctx.fatal('→ can\'t find numpy core headers')
ctx.env['CXXFLAGS'].append("-I/usr/include/eigen3")
ctx.env['CXXFLAGS'].append("-I"+str(Options.options.with_eigen))
ctx.check(header_name=['Eigen/Dense'],compile_mode='cxx', mandatory=True)
ctx.env['CXXFLAGS'].append("-I"+str(Options.options.with_gsl)+"/include")
......
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