mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
29888185a1
- Previously we were not listing gflags as a public dependency of Ceres if it and glog were found (and MINIGLOG was not being used). This does not reflect that if glog was compiled with gflags then it will #include gflags/gflags.h in glog/logging.h, thus making gflags a public dependency of anything linking against glog. - On *nix OSs if glog/gflags are shared libraries this did not result in a link error when compiling Ceres as the gflags symbols were indirectly resolved. However, on MSVC this is not the case, and this could result in unresolved gflags symbol link errors when compiling Ceres. - Now we add gflags to the list of public Ceres dependencies if both glog and gflags are found (and MINIGLOG is not enabled). Change-Id: I5ce6038fa816781cc81b378522068dc563d29c51