cmake: Properly link against pthread on Linux using CMake's detection
This commit is contained in:
1 parent
fb02a321b6
commit
049446d9bb
1 file changed
+3
-2
Vendored
+3
-2
@@ -316,8 +316,9 @@ ELSE()
|
|||||||
|
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
SET(PA_PKGCONFIG_LDFLAGS "${PA_PKGCONFIG_LDFLAGS} -lm -lpthread")
|
find_package(Threads)
|
||||||
SET(PA_LIBRARY_DEPENDENCIES ${PA_LIBRARY_DEPENDENCIES} m pthread)
|
SET(PA_PKGCONFIG_LDFLAGS "${PA_PKGCONFIG_LDFLAGS} -lm")
|
||||||
|
SET(PA_LIBRARY_DEPENDENCIES ${PA_LIBRARY_DEPENDENCIES} m Threads::Threads)
|
||||||
|
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user