Skip to content

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

@asfimport

Description

@asfimport

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

Reporter: Wes McKinney / @wesm
Assignee: Wes McKinney / @wesm

Related issues:

Note: This issue was originally created as ARROW-747. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions