c-blosc icon indicating copy to clipboard operation
c-blosc copied to clipboard

No BLOSC-config.cmake and blosc-config.cmake are available in the Release installation tree.

Open vessokolev opened this issue 1 year ago • 1 comments

The issue that I am currently encountering pertains 3-rd party software developers. The problem is not related to the quality of the library code -- it works as expected. It is about missing CMake config files in the installation tree. In particular, I cannot get neither blosc-config.cmake nor BLOSCConfig.cmake (the package configuration files) to appear in the installation tree (I presume they should be located under lib64/cmake/Blosc or lib/cmake/Blosc). Shown below are the actual CMake command lines invoked to configure and run the compilation, testing, and installation:

cmake -B build-${COMPILER} \
      -DCMAKE_C_COMPILER=clang \
      -DCMAKE_BUILD_TYPE=Release \
      -DBUILD_TESTS=ON \
      -DPREFER_EXTERNAL_LZ4=ON \
      -DLZ4_INCLUDE_DIR=${LZ4_LOCATION}/include \
      -DLZ4_LIBRARY=${LZ4_LOCATION}/lib64/liblz4.so \
      -DPREFER_EXTERNAL_ZLIB=ON \
      -DZLIB_INCLUDE_DIR=${ZLIB_LOCATION}/include \
      -DZLIB_LIBRARY_RELEASE=${ZLIB_LOCATION}/lib/libz.so \
      -DPREFER_EXTERNAL_ZSTD=ON \
      -DZSTD_INCLUDE_DIR=${ZSTD_LOCATION}/include \
      -DZSTD_LIBRARY=${ZSTD_LOCATION}/lib64/libzstd.so \
      -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX}-${COMPILER}

cmake --build build-${COMPILER} -j ${NUM_PAR_COMP} || exit
ctest --test-dir build-${COMPILER} || exit
cmake --install build-${COMPILER} || exit

Note that the messages describing the installation procedure show that neither blosc-config.cmake nor BLOSCConfig.cmake are being installed (while the support file for autotools pkgconfig/blosc.pc is):

Total Test time (real) =  55.16 sec
-- Install configuration: "Release"
-- Installing: /opt/software/c-blosc/1/1.21.6-llvm/lib64/pkgconfig/blosc.pc
-- Up-to-date: /opt/software/c-blosc/1/1.21.6-llvm/include/blosc.h
-- Up-to-date: /opt/software/c-blosc/1/1.21.6-llvm/include/blosc-export.h
-- Installing: /opt/software/c-blosc/1/1.21.6-llvm/lib64/libblosc.so.1.21.6
-- Up-to-date: /opt/software/c-blosc/1/1.21.6-llvm/lib64/libblosc.so.1
-- Up-to-date: /opt/software/c-blosc/1/1.21.6-llvm/lib64/libblosc.so
-- Installing: /opt/software/c-blosc/1/1.21.6-llvm/lib64/libblosc.a

This is the complete log collected during the configuration, compilation, testing, and installation.

Are those package configuration files not intentionally generated, or am I simply missing something here? Note that such files exist in the installation tree of c-blosc2.

Thank you very much in advance for your attention.

vessokolev avatar Dec 18 '24 17:12 vessokolev