mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
16ecd40523
- gflags <= 2.1.2 has a bug in its exported gflags-config.cmake: https://github.com/gflags/gflags/issues/110 whereby it sets gflags_LIBRARIES to a non-existent 'gflags' target. - This causes linker errors if gflags is installed in a non-standard location (as otherwise CMake resolves gflags to -lgflags which links if gflags is installed somewhere on the current path). - We now check for this case, and search for the correct gflags imported target and update gflags_LIBRARIES to reference it if found, otherwise proceed on to the original manual search to try to find gflags. Change-Id: Iceccc3ee53c7c2010e41cc45255f966e7b13d526