Closed panlei-coder closed 4 months ago
release 模式下,生成的 gflags 库名称为 libgflags.a,debug 模式下,生成的 gflags 库名称为 libgflags_debug.a。在 brpc 里面,它的 find_package 是按照 release 模式的名字寻找的。因此,在 debug 模式下会出现找不到 gflags 库,这里考虑的是 debug 模式下也不会进入 gflags 库中,所以始终按照 release 模式编译。如果大家有更好的解决办法,欢迎找我交流讨论。
思路我同意,可行。CI 看看为啥失败了。
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.
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.
release 模式下,生成的 gflags 库名称为 libgflags.a,debug 模式下,生成的 gflags 库名称为 libgflags_debug.a。在 brpc 里面,它的 find_package 是按照 release 模式的名字寻找的。因此,在 debug 模式下会出现找不到 gflags 库,这里考虑的是 debug 模式下也不会进入 gflags 库中,所以始终按照 release 模式编译。如果大家有更好的解决办法,欢迎找我交流讨论。