diff --git a/CMakeLists.txt b/CMakeLists.txt index 99c4c4fd2..dbe47cf01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -249,6 +249,13 @@ if(WITH_UBSAN) endif() endif() +find_package(gflags) +if(gflags_FOUND) + add_definitions(-DGFLAGS=1) + include_directories(${gflags_INCLUDE_DIR}) + list(APPEND THIRDPARTY_LIBS ${gflags_LIBRARIES}) +endif() + find_package(NUMA) if(NUMA_FOUND) add_definitions(-DNUMA)