From: Arkady Shapkin Date: Tue, 9 May 2017 03:43:36 +0000 (-0700) Subject: Support static gflags library X-Git-Tag: v2017.05.15.00~19 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6d94a08719579d6ef045ff65d954233e2a66aecc;p=folly.git Support static gflags library Summary: Closes https://github.com/facebook/folly/pull/587 Reviewed By: yfeldblum Differential Revision: D5022071 Pulled By: Orvid fbshipit-source-id: 2506087de76ba4544bf68a330bc2a18977c65f28 --- diff --git a/CMake/FindGFlags.cmake b/CMake/FindGFlags.cmake index 3217c6fa..066fe13f 100755 --- a/CMake/FindGFlags.cmake +++ b/CMake/FindGFlags.cmake @@ -13,7 +13,7 @@ ENDIF () FIND_PATH(LIBGFLAGS_INCLUDE_DIR gflags/gflags.h) -FIND_LIBRARY(LIBGFLAGS_LIBRARY gflags) +FIND_LIBRARY(LIBGFLAGS_LIBRARY NAMES gflags gflags_static) # handle the QUIETLY and REQUIRED arguments and set LIBGFLAGS_FOUND to TRUE if # all listed variables are TRUE