mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
cmake: Properly link against pthread on Linux using CMake's detection
This commit is contained in:
parent
fb02a321b6
commit
049446d9bb
1 changed files with 3 additions and 2 deletions
5
Externals/portaudio/CMakeLists.txt
vendored
5
Externals/portaudio/CMakeLists.txt
vendored
|
@ -316,8 +316,9 @@ ELSE()
|
|||
|
||||
ENDIF()
|
||||
|
||||
SET(PA_PKGCONFIG_LDFLAGS "${PA_PKGCONFIG_LDFLAGS} -lm -lpthread")
|
||||
SET(PA_LIBRARY_DEPENDENCIES ${PA_LIBRARY_DEPENDENCIES} m pthread)
|
||||
find_package(Threads)
|
||||
SET(PA_PKGCONFIG_LDFLAGS "${PA_PKGCONFIG_LDFLAGS} -lm")
|
||||
SET(PA_LIBRARY_DEPENDENCIES ${PA_LIBRARY_DEPENDENCIES} m Threads::Threads)
|
||||
|
||||
ENDIF()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue