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

[C++] Fix spurious warning caused by passing dl to add_dependencies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.3.0
    • C++
    • None

    Description

      There is a potentially confusing warning from arrow/io on Linux:

      -- Configuring done
      CMake Warning (dev) at cmake_modules/BuildUtils.cmake:98 (add_dependencies):
        Policy CMP0046 is not set: Error on non-existent dependency in
        add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
        Use the cmake_policy command to set the policy and suppress this warning.
      
        The dependency target "dl" of target "arrow_io_objlib" does not exist.
      Call Stack (most recent call first):
        src/arrow/io/CMakeLists.txt:85 (ADD_ARROW_LIB)
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      -- Generating done
      -- Build files have been written to: /home/wesm/code/arrow/cpp/test-build
      

      I believe you may need to link to libdl on OS X

      Attachments

        Issue Links

          Activity

            People

              wesm Wes McKinney
              wesm Wes McKinney
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: