Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Duplicate
-
None
-
None
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
find_package(thrift)
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?
Attachments
Issue Links
- is duplicated by
-
THRIFT-4811 Add cmake config module
- Closed
- relates to
-
THRIFT-4811 Add cmake config module
- Closed
- links to