OpenAtomFoundation / pikiwidb

a high-performance, large-capacity, multi-tenant, data-persistent, strong data consistency based on raft, Redis-compatible elastic KV data storage system based on RocksDB
BSD 3-Clause "New" or "Revised" License
198 stars 63 forks source link

fix: fix a bug of not find gflags #335

Closed panlei-coder closed 4 months ago

panlei-coder commented 4 months ago

release 模式下,生成的 gflags 库名称为 libgflags.a,debug 模式下,生成的 gflags 库名称为 libgflags_debug.a。在 brpc 里面,它的 find_package 是按照 release 模式的名字寻找的。因此,在 debug 模式下会出现找不到 gflags 库,这里考虑的是 debug 模式下也不会进入 gflags 库中,所以始终按照 release 模式编译。如果大家有更好的解决办法,欢迎找我交流讨论。 5a5d4e953dcf9f8b8da4d41a457e83f

AlexStocks commented 4 months ago

思路我同意,可行。CI 看看为啥失败了。

Issues-translate-bot commented 4 months ago

Bot detected the issue body's language is not English, translate it automatically.


I agree with the idea, it is feasible. CI to see why it failed.