Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-10563

[Packaging][C++] CMake find_package(Arrow 2.0 CONFIG REQUIRED) broken

    XMLWordPrintableJSON

Details

    Description

      Adding Arrow targets to a CMake project using the installed config files no longer works with version 2.0.0.

       

      find_package(Arrow 2.0 CONFIG REQUIRED)
      

      I get the following error:

       

      CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
        Could NOT find Snappy (missing: Snappy_LIB Snappy_INCLUDE_DIR)
      Call Stack (most recent call first):
        /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
        /usr/lib/x86_64-linux-gnu/cmake/arrow/FindSnappy.cmake:50 (find_package_handle_standard_args)
        /usr/share/cmake-3.16/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
        /usr/lib/x86_64-linux-gnu/cmake/arrow/ArrowConfig.cmake:95 (find_dependency)
        CMakeLists.txt:5 (find_package)
      

      The snappy lib is installed:

      find /usr -name "libsnappy*"
      /usr/share/doc/libsnappy1v5
      /usr/lib/x86_64-linux-gnu/libsnappy.so.1.1.8
      /usr/lib/x86_64-linux-gnu/libsnappy.so.1
      

      It's possible to reproduce the error using https://github.com/mbrobbel/arrow-cmake. Build the image to get the error.

      git clone https://github.com/mbrobbel/arrow-cmake
      cd arrow-cmake
      docker build -t arrow-cmake .
      

      This used to work with 1.x.

      Attachments

        Issue Links

          Activity

            People

              kou Kouhei Sutou
              mbrobbel Matthijs Brobbel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h