cmake: Fix exporting -pthread to pkgconfig - #965
Conversation
|
I'm assuming that means THREADS_PREFER_PTHREAD_FLAG is being set somewhere, since that's not otherwise the default behavior in cmake. Fix seems reasonable though. |
It is recommended, and it is there: Line 495 in 8776bf5 |
|
odd that docs show |
|
You are right, it is a different identifier. The issue came up in the android builds. Maybe it came from the toolchain. THREADS_PREFER_PTHREAD_FLAG is more a toolchain setting than a project setting - users probably want the same configuration for a given target platform. |
Before this change, libcares.pc contained ` -l-pthread`. Signed-off-by: Kai Pastor (@dg0yt)
Before this change, libcares.pc contained ` -l-pthread`. Signed-off-by: Kai Pastor (@dg0yt)
Before this change, libcares.pc contained ` -l-pthread`. Signed-off-by: Kai Pastor (@dg0yt)
Before this change, libcares.pc contained ` -l-pthread`. Signed-off-by: Kai Pastor (@dg0yt)
Before this change, libcares.pc contained ` -l-pthread`. Signed-off-by: Kai Pastor (@dg0yt)
Before this change, libcares.pc contained ` -l-pthread`. Signed-off-by: Kai Pastor (@dg0yt)
Before this change, libcares.pc contained ` -l-pthread`. Signed-off-by: Kai Pastor (@dg0yt)
Before this change, libcares.pc contained ` -l-pthread`. Signed-off-by: Kai Pastor (@dg0yt)
Before this change, libcares.pc contained ` -l-pthread`. Signed-off-by: Kai Pastor (@dg0yt)
Before this change, libcares.pc contained ` -l-pthread`. Signed-off-by: Kai Pastor (@dg0yt)
Before this change, libcares.pc contained ` -l-pthread`. Signed-off-by: Kai Pastor (@dg0yt)
Before this change, libcares.pc contained ` -l-pthread`. Signed-off-by: Kai Pastor (@dg0yt)
Before this change, libcares.pc contained
-l-pthread.Noticed in the vcpkg port.