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
This commit is contained in:
Alex Stewart
2018-04-03 18:07:43 +01:00
parent 7c4e8a454e
commit af77d3e676
+1 -1
View File
@@ -313,7 +313,7 @@ else (CERES_USES_MINIGLOG)
"dependency: gflags. Searched using GFLAGS_INCLUDE_DIR_HINTS: " "dependency: gflags. Searched using GFLAGS_INCLUDE_DIR_HINTS: "
"${GFLAGS_INCLUDE_DIR_HINTS} and gflags_DIR: ${gflags_DIR}.") "${GFLAGS_INCLUDE_DIR_HINTS} and gflags_DIR: ${gflags_DIR}.")
endif() endif()
list(APPEND CERES_INCLUDE_DIRS ${GFLAGS_INCLUDE_DIR_HINTS}) list(APPEND CERES_INCLUDE_DIRS ${GFLAGS_INCLUDE_DIRS})
endif() endif()
endif (CERES_USES_MINIGLOG) endif (CERES_USES_MINIGLOG)