Skip to content

Commit

Permalink
use correct target name for gflags-config.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
jtattermusch committed Aug 13, 2018
1 parent e495476 commit 82af360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/gflags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ if("${gRPC_GFLAGS_PROVIDER}" STREQUAL "module")
elseif("${gRPC_GFLAGS_PROVIDER}" STREQUAL "package")
# Use "CONFIG" as there is no built-in cmake module for gflags.
find_package(gflags REQUIRED CONFIG)
if(TARGET gflags::gflags)
set(_gRPC_GFLAGS_LIBRARIES gflags::gflags)
if(TARGET gflags)
set(_gRPC_GFLAGS_LIBRARIES gflags)
set(_gRPC_GFLAGS_INCLUDE_DIR ${GFLAGS_INCLUDE_DIR})
endif()
set(_gRPC_FIND_GFLAGS "if(NOT gflags_FOUND)\n find_package(gflags CONFIG)\nendif()")
Expand Down

0 comments on commit 82af360

Please sign in to comment.