pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: py-pyside6 & freecad
MLH wrote:
> =================================================
> Now run 'cmake --build /pkg_comp/obj/pkgsrc/wip/freecad/default/cmake-pkgsrc-build' to buil
> =================================================
>
> -- Configuring done (2.6s)
> CMake Error at /usr/pkgnew/cmake/hdf5-targets.cmake:59 (set_target_properties):
> The link interface of target "hdf5-static" contains:
>
> libaec::sz
>
> but the target was not found. Possible reasons include:
>
> * There is a typo in the target name.
> * A find_package call is missing for an IMPORTED target.
> * An ALIAS target is missing.
So it appears that hdf5 isn't built with the szip package.
in
https://forum.hdfgroup.org/t/cmake-zlib-dependency-not-properly-propagted-by-hdf5-targets/514
- Ok I think I figured this one out:
-
- The problem is that vcpkg builds without HDF5_PACKAGE_EXTLIBS=ON
- so the szip target file is not included in hdf5config.cmake. On
- the other hand hdf5config.cmake is missing a find_package(SZIP)
- call if HDF5_PACKAGE_EXTLIBS=OFF and the target szip is not yet
- defined!
-
- The part in the config should look like:
- if (${HDF5_PACKAGE_NAME}_ENABLE_SZIP_SUPPORT AND NOT TARGET "szip")
- if(${HDF5_PACKAGE_NAME}_PACKAGE_EXTLIBS)
- include (${PACKAGE_PREFIX_DIR}/share/SZIP/SZIP-targets.cmake)
- else()
- find_package(SZIP REQUIRED)
- endif()
- endif()
-
- the same for zlib (although currently zlib does not define targets
- and as such the full paths to the libs is embedded by cmake within
- hdf5-targets.cmake )
So what would be the correct way here to get szip included ?
Home |
Main Index |
Thread Index |
Old Index