Tencent / Tendis

Tendis is a high-performance distributed storage system fully compatible with the Redis protocol.
http://tendis.cn
Other
2.92k stars 319 forks source link

CMake Error: Including both glog and gflags as cmake subdirectories #237

Open 4kangjc opened 1 year ago

4kangjc commented 1 year ago

Description

Including both glog and gflags as cmake subdirectories

Expected Behavior

CMake success

Current Behavior

CMake Error at /usr/lib/cmake/gflags/gflags-nonamespace-targets.cmake:37 (message):
  Some (but not all) targets in this export set were already defined.

  Targets Defined: gflags_nothreads_static

  Targets not yet defined:
  gflags_shared;gflags_nothreads_shared;gflags_static

Call Stack (most recent call first):
  /usr/lib/cmake/gflags/gflags-config.cmake:17 (include)
  src/thirdparty/snappy/CMakeLists.txt:133 (find_package)

Possible Solution

https://github.com/google/glog/issues/251

raffertyyu commented 1 year ago

能麻烦发一下 cmake 相关的命令或者日志吗。我这边没办法复现这个问题。