package/armadillo: fix build when host has hdf5
authorGwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Mon, 20 Apr 2020 16:07:48 +0000 (18:07 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Mon, 20 Apr 2020 21:27:50 +0000 (23:27 +0200)
commite2c0f234ed44d01ef5fc8a21e9d67f619e084ad0
tree485279d7194bacae61dc93d7b4841158f6f84654
parent3eb09d057b9a4134a356b5c320149f42eff78123
package/armadillo: fix build when host has hdf5

When host computer has hdf5 library installed, armadillo fails to build with:

    [...]
    aarch64-buildroot-linux-gnu-g++: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include/hdf5/serial'
    make[3]: *** [CMakeFiles/armadillo.dir/build.make:63: CMakeFiles/armadillo.dir/src/wrapper1.cpp.o] Error 1
    aarch64-buildroot-linux-gnu-g++: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include/hdf5/serial'
    [...]

This issue seems known and is mentionned in a message, displayed at detection step:

    [...]
    -- *** If use of HDF5 is causing problems,
    -- *** rerun cmake with HDF5 detection disabled:
    -- *** cmake -D DETECT_HDF5=false .
    --
    [...]

nce hdf5 in not supported by buildroot, this patch force disabling this
detection.

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
[yann.morin.1998@free.fr: fix pacakge name in title]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/armadillo/armadillo.mk