Changeset a2b1159


Ignore:
Timestamp:
Dec 29, 2021, 5:52:03 PM (2 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe
Children:
2117311
Parents:
815a73c
git-author:
Paul Brossier <piem@piem.org> (12/27/21 04:07:02)
git-committer:
Paul Brossier <piem@piem.org> (12/29/21 17:52:03)
Message:

[waf] also check for hdf5 directly

current brew does not ship libdhf5.pc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r815a73c ra2b1159  
    525525
    526526    if (ctx.options.enable_hdf5 != False):
     527        # try with pkg-config
    527528        ctx.check_cfg(package='hdf5', args='--cflags --libs',
     529                uselib_store='HDF5', mandatory=False)
     530        # also try directly
     531        ctx.check(lib=['hdf5'], use = ['HDF5'],
    528532                uselib_store='HDF5', mandatory=ctx.options.enable_hdf5)
    529533        ctx.check(lib=['hdf5_hl'], use = ['HDF5'],
    530534                uselib_store='HDF5_HL', mandatory=ctx.options.enable_hdf5)
     535        if 'LIB_HDF5_HL' in ctx.env and 'LIB_HDF5' in ctx.env:
     536            ctx.define('HAVE_HDF5', 1)
    531537
    532538    # write configuration header
Note: See TracChangeset for help on using the changeset viewer.