Closed ysohma closed 10 months ago
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
Thanks for the PR. It seems reasonable. I don't seem to have permissions anymore to merge PRs here, as I am no longer a Google employee. @mariecwhite can you take a look? No need to import this into the Google internal code repository (a manual process anyway, no copybara here). This should be GitHub-only - just merge this PR here.
Looks like I don't have permissions to merge here. Let me see if I can get write access.
I now have write access. PR merged.
Hi there,
I'm encountering a build error on the Android platform.
In
contrib/CMakeLists.txt
, the-lpthread
linker flag is added for non-Windows platforms. However, on certain platforms like Android, the-lpthread
flag is unnecessary and is causing build errors.This is simple script to reproduce.
Changes
Instead of hard-coding the
-lpthread
flag, I propose usingfind_package()
to link with pthread. By employingfind_package()
, CMake will automatically detect the platform and set the appropriate flags accordingly.Related Issue
I believe this change will resolve the build error on the Android platform. Your feedback and review are much appreciated.
Thank you!