From af77d3e676a01fa71fc4c006c18f52d4ab2d8062 Mon Sep 17 00:00:00 2001 From: Alex Stewart Date: Tue, 3 Apr 2018 18:07:43 +0100 Subject: [PATCH] Fix exported gflags include path. - In practice, this was not causing any errors, as GFLAGS_INCLUDE_DIR_HINTS is set from GFLAGS_INCLUDE_DIRS so the two would have been equivalent, but we should nonetheless be using the one set after the find_package() call. - Note that this would only have been active for older gflags versions that were not built with CMake. Change-Id: Ie54145f522c974b7685052aafb1d2f6055d22337 --- cmake/CeresConfig.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CeresConfig.cmake.in b/cmake/CeresConfig.cmake.in index 9fc69715e..957b99de2 100644 --- a/cmake/CeresConfig.cmake.in +++ b/cmake/CeresConfig.cmake.in @@ -313,7 +313,7 @@ else (CERES_USES_MINIGLOG) "dependency: gflags. Searched using GFLAGS_INCLUDE_DIR_HINTS: " "${GFLAGS_INCLUDE_DIR_HINTS} and gflags_DIR: ${gflags_DIR}.") endif() - list(APPEND CERES_INCLUDE_DIRS ${GFLAGS_INCLUDE_DIR_HINTS}) + list(APPEND CERES_INCLUDE_DIRS ${GFLAGS_INCLUDE_DIRS}) endif() endif (CERES_USES_MINIGLOG)