Skip to content

Commit

Permalink
[SCons] Fix compilation when system Eigen is specified
Browse files Browse the repository at this point in the history
Also add note about adding /usr/include/eigen3 if needed
  • Loading branch information
speth committed Nov 14, 2016
1 parent 5861bc1 commit c677d13
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,12 @@ config_options = [
'sphinx-build', PathVariable.PathAccept),
EnumVariable(
'system_eigen',
"""Select whether to use Eigen from a system installation ('y'), from
a git submodule ('n'), or to decide automatically ('default').""",
"""Select whether to use Eigen from a system installation ('y'), from a
git submodule ('n'), or to decide automatically ('default'). If Eigen
is not installed directly into a system include directory, e.g. it is
installed in '/usr/include/eigen3/Eigen', then you will need to add
'/usr/include/eigen3' to 'extra_inc_dirs'.
""",
'default', ('default', 'y', 'n')),
EnumVariable(
'system_fmt',
Expand Down Expand Up @@ -1308,7 +1312,7 @@ cdefine('LAPACK_FTN_TRAILING_UNDERSCORE', 'lapack_ftn_trailing_underscore')
cdefine('FTN_TRAILING_UNDERSCORE', 'lapack_ftn_trailing_underscore')
cdefine('LAPACK_NAMES_LOWERCASE', 'lapack_names', 'lower')
cdefine('CT_USE_LAPACK', 'use_lapack')
cdefine('CT_USE_SYSTEM_EIGEN', env['system_eigen'])
cdefine('CT_USE_SYSTEM_EIGEN', 'system_eigen')
cdefine('CT_USE_SYSTEM_FMT', 'system_fmt')

config_h_build = env.Command('build/src/config.h.build',
Expand Down

0 comments on commit c677d13

Please sign in to comment.