diff --git a/build/fbcode_builder/CMake/FindGlog.cmake b/build/fbcode_builder/CMake/FindGlog.cmake index 898a8adc7..3b9e76e52 100644 --- a/build/fbcode_builder/CMake/FindGlog.cmake +++ b/build/fbcode_builder/CMake/FindGlog.cmake @@ -34,4 +34,9 @@ if (NOT TARGET glog::glog) add_library(glog::glog UNKNOWN IMPORTED) set_target_properties(glog::glog PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${GLOG_INCLUDE_DIRS}") set_target_properties(glog::glog PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES "C" IMPORTED_LOCATION "${GLOG_LIBRARIES}") + + find_package(Gflags) + if(GFLAGS_FOUND) + set_target_properties(glog::glog PROPERTIES IMPORTED_LINK_INTERFACE_LIBRARIES ${LIBGFLAGS_LIBRARY}) + endif() endif()