You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Mario Emmenlauer (JIRA)" <ji...@apache.org> on 2019/01/24 16:49:00 UTC

[jira] [Updated] (THRIFT-4752) Add cmake package configuration support?

     [ https://issues.apache.org/jira/browse/THRIFT-4752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Emmenlauer updated THRIFT-4752:
-------------------------------------
    Description: 
The thrift build with cmake is really great! In my daily use, there is a minor issue left: downstream packages all have to have a FindThrift.cmake script. This is slightly annoying, because it replicates the same detection script over and over in all downstream packages.

Modern cmake suggests a nice solution: the use of package configuration files (see [https://cmake.org/cmake/help/v3.0/manual/cmake-packages.7.html#package-configuration-file).] With package configuration files, after building thrift, downstream packages can just use
{noformat}
find_package(thrift){noformat}
and the library and compiler are "auto-magically" resolved. Transitive package dependencies are also resolved, and even build settings like compiler flags can be passed on.

I have created a package configuration for thrift cmake build. Could this be considered for inclusion?

  was:
The thrift build with cmake is really great. There is only a minor issue left, that downstream packages have to have a FindThrift.cmake script to correctly find and use the library and compiler.

Modern cmake suggests as a better solution the use of package configuration files (see [https://cmake.org/cmake/help/v3.0/manual/cmake-packages.7.html#package-configuration-file).] Thanks to package configuration, all users of thrift can just find_package(thrift) and use the library and compiler without further work. Transitive package dependencies are also resolved.

I have created a package configuration for thrift cmake build. Could this be considered for inclusion?


> Add cmake package configuration support?
> ----------------------------------------
>
>                 Key: THRIFT-4752
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4752
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Deployment
>    Affects Versions: 1.0
>            Reporter: Mario Emmenlauer
>            Priority: Trivial
>              Labels: cmake
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The thrift build with cmake is really great! In my daily use, there is a minor issue left: downstream packages all have to have a FindThrift.cmake script. This is slightly annoying, because it replicates the same detection script over and over in all downstream packages.
> Modern cmake suggests a nice solution: the use of package configuration files (see [https://cmake.org/cmake/help/v3.0/manual/cmake-packages.7.html#package-configuration-file).] With package configuration files, after building thrift, downstream packages can just use
> {noformat}
> find_package(thrift){noformat}
> and the library and compiler are "auto-magically" resolved. Transitive package dependencies are also resolved, and even build settings like compiler flags can be passed on.
> I have created a package configuration for thrift cmake build. Could this be considered for inclusion?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)