|
|
@ -12,6 +12,12 @@ if(NOT EXISTS ${grpc_build_dir}) |
|
|
|
endif() |
|
|
|
|
|
|
|
set(gflags_DIR ${LIB_BASE_DIR}/gflags-build) |
|
|
|
find_package(gflags REQUIRED CONFIG HINTS ${GFLAGS_BUILD_DIR}) |
|
|
|
find_package(gflags CONFIG REQUIRED HINTS ${GFLAGS_BUILD_DIR}) |
|
|
|
find_library(GFLAGS_LIBRARY NAMES gflags PATHS ${GFLAGS_BUILD_DIR}/lib) |
|
|
|
find_library(GFLAGS_LIBRARY_NOTHREADS NAMES gflags_nothreads PATHS ${GFLAGS_BUILD_DIR}/lib) |
|
|
|
include_directories(${GFLAGS_BUILD_DIR}/include) |
|
|
|
list(APPEND third_party_libraries gflags) |
|
|
|
|
|
|
|
|
|
|
|
include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake) |
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(gflags DEFAULT_MSG |
|
|
|
GFLAGS_LIBRARY GFLAGS_LIBRARY_NOTHREADS) |