commit | a0dc19eb52b0e4ad9c0a7d11a467d60d88f0f8ba | [log] [tgz] |
---|---|---|
author | Reinhold Gschweicher <pyro4hell@gmail.com> | Mon Sep 09 11:54:34 2024 +0200 |
committer | Reinhold Gschweicher <pyro4hell@gmail.com> | Wed Sep 25 08:00:24 2024 +0200 |
tree | b1f66435c6551699f35e002424713c873037bd8e | |
parent | 8c740b83ee6b4d556e402dbce596154dbfc47ff4 [diff] |
Fix Abseil usage of installed cmake-config Fix the generated cmake-config file to look for the used Abseil-cpp config files providing the needed targets. When using Abseil from system (or locally installed and set via `absl_DIR`) the used targets like `absl::log` need to be made available in downstream projects using `ceres-solver`. For system packages with no `absl_VERSION` info check for the required target `absl::absl_vlog_is_on`, just like we do in `CMakeLists.txt`. Error on installation/export of "no-absl-VERSION" as we can't check version mismatches. When using `abseil-cpp` as submodule the abseil-configs are added to the install target as well. Use these config files to make the needed Abseil targets available. In the submodule case extract the `absl_VERSION` variable from its `CMakeLists.txt` file for us to check against in the generated cmake-config-file. Fixes: https://github.com/ceres-solver/ceres-solver/issues/1089 Change-Id: I3e3d079ddf931e7fe1b57783471c32c19e4d31b6
Ceres Solver is an open source C++ library for modeling and solving large, complicated optimization problems. It is a feature rich, mature and performant library which has been used in production at Google since 2010. Ceres Solver can solve two kinds of problems.
Please see ceres-solver.org for more information.