nmeum / android-tools

Unoffical CMake-based build system for android command line utilities
Apache License 2.0
191 stars 57 forks source link

vendor: CMakeLists: Fix cmake pthread use #54

Closed Xeonacid closed 2 years ago

Xeonacid commented 2 years ago

Let cmake use -pthread instead of -lpthread, to fix build error on riscv.

FYI: stackoverflow.com/questions/23250863/difference-between-pthread-and-lpthread-while-compiling stackoverflow.com/questions/1620918/cmake-and-libpthread cmake.org/cmake/help/latest/module/FindThreads.html#variable:THREADS_PREFER_PTHREAD_FLAG

nmeum commented 2 years ago

8d839f86359b90ed61942e04a0041a61b9792bc8 squashed and merged with a small whitespace change. Thanks a lot! :tada: