xtensor-stack / xtensor-io

xtensor plugin to read and write images, audio files, numpy (compressed) npz and HDF5
BSD 3-Clause "New" or "Revised" License
85 stars 28 forks source link

[BUG] conda-forge Incorrect INTERFACE_LINK_LIBRARIES #69

Open cheng-chi opened 4 years ago

cheng-chi commented 4 years ago

When using xtensor-io with conda, the INTERFACE_LINK_LIBRARIES in xtensor-ioTargets.cmake contains incorrect library paths such as "/home/conda/feedstock_root/build_artifacts/xtensor-io_1576590031955/_build_env/x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/librt.so" and is causing linker errors. I'm using the linux64 package.

SylvainCorlay commented 4 years ago

Hello @cheng-chi thank you for reporting. Which version are you using?

cheng-chi commented 4 years ago

Hello @cheng-chi thank you for reporting. Which version are you using?

Thanks for the fast reply! I'm using 0.9.0. The problem can also be demonstrated by decompressing the conda-forge tarball (lib/cmake/xtensor-io/xtensor-ioTargets.cmake)

SylvainCorlay commented 4 years ago

Indeed, everything should have anaconda1anaconda2anaconda3 instead, which is replaced by the correct path.