commit | c5c6f559ab01de024b95b14432bf6a42378ae8ef | [log] [tgz] |
---|---|---|
author | Alex Stewart <alexs.mac@gmail.com> | Sat Nov 12 21:01:30 2016 +0000 |
committer | Alex Stewart <alexs.mac@gmail.com> | Sun Nov 13 11:42:44 2016 +0000 |
tree | 027d177bca1fde931247dc5b3dafbf12aabe442b | |
parent | 6519e78920c96fc68b9341f43dde333da603ad0b [diff] |
Fix potential invalid reset of CMAKE_FIND_LIBRARY_PREFIXES on MSVC. - gflags_report_not_found() calls gflags_reset_find_library_prefix() and we only reset CMAKE_FIND_LIBRARY_PREFIXES when performing a manual search for gflags, but gflags_report_not_found() is also used before the manual search when searching for an exported gflags target. - As such, it was possible that we could have cleared CMAKE_FIND_LIBRARY_PREFIXES rather than reset it if gflags_report_not_found() was invoked during the exported target search. - This patch prevents this possibility by verifying that the cached version of CMAKE_FIND_LIBRARY_PREFIXES exists before updating it. Change-Id: I07528ae5f197a366c7da342196b3e977f9a1fc93
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.
Ceres development happens on Gerrit, including both repository hosting and code reviews. The GitHub Repository is a continuously updated mirror which is primarily meant for issue tracking. Please see our Contributing to Ceres Guide for more details.
The upstream Gerrit repository is
https://ceres-solver.googlesource.com/ceres-solver