[
https://issues.apache.org/jira/browse/ARROW-747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15951384#comment-15951384
]
Wes McKinney commented on ARROW-747:
------------------------------------
Apparently CMake has a special variable for this purpose:
https://cmake.org/cmake/help/v3.0/variable/CMAKE_DL_LIBS.html
So we do need to link for dlopen/dlsym, but the way we are doing it is wrong.
> [C++] Linking to libdl is unnecessary on Linux
> ----------------------------------------------
>
> Key: ARROW-747
> URL: https://issues.apache.org/jira/browse/ARROW-747
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Reporter: Wes McKinney
> Fix For: 0.3.0
>
>
> There is a potentially confusing warning from arrow/io on Linux:
> {code}
> -- 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
> {code}
> I believe you may need to link to libdl on OS X
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)