Closed Xeonacid closed 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
8d839f86359b90ed61942e04a0041a61b9792bc8 squashed and merged with a small whitespace change. Thanks a lot! :tada:
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