You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2019/01/10 04:11:00 UTC
[jira] [Updated] (ARROW-4065) [C++] arrowTargets.cmake is broken
[ https://issues.apache.org/jira/browse/ARROW-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wes McKinney updated ARROW-4065:
--------------------------------
Summary: [C++] arrowTargets.cmake is broken (was: arrowTargets.cmake is broken)
> [C++] arrowTargets.cmake is broken
> ----------------------------------
>
> Key: ARROW-4065
> URL: https://issues.apache.org/jira/browse/ARROW-4065
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Affects Versions: 0.12.0
> Reporter: Kousuke Saruta
> Assignee: Kousuke Saruta
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.12.0
>
> Time Spent: 2h 40m
> Remaining Estimate: 0h
>
> When we build Arrow's cpp library using CMake, arrowTargets.cmake will be generated and installed but it's broken.
> The following is a part of arrowTargets.cmake generated.
> {code}
> # Create imported target arrow_shared
> add_library(arrow_shared SHARED IMPORTED)
> set_target_properties(arrow_shared PROPERTIES
> INTERFACE_LINK_LIBRARIES "dl;pthreadshared"
> )
> # Create imported target arrow_static
> add_library(arrow_static STATIC IMPORTED)
> set_target_properties(arrow_static PROPERTIES
> INTERFACE_LINK_LIBRARIES "glog_static;zstd_static;zlib_shared;snappy_static;lz4_static;brotli_dec_static;brotli_enc_static;brotli_common_static;double-conversion_static;boost_system_shared;boost_filesystem_shared;boost_regex_shared;jemalloc_static;rt;pthreadshared"
> )
> {code}
> There are no INTERFACE_INCLUDE_DIRECTORIES and linker doesn't recognize pthreadshared because the true name of pthread should be libpthread.so or libpthread.a.
> *_static and *_shared are also wrong name.
> Because of this, apps which links arrow can't be built using CMake.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)