mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix Libs line in toxcore.pc pkg-config file.
CMake lists are `;` separated and CMAKE_THREAD_LIBS_INIT contains "-lpthread". This resulted in "-l-lpthread;-lrt" on Linux.
This commit is contained in:
parent
b14b8d07fa
commit
bb0fbf94ae
|
@ -223,7 +223,7 @@ target_link_modules(toxnetwork toxcrypto)
|
|||
|
||||
if(CMAKE_THREAD_LIBS_INIT)
|
||||
target_link_modules(toxnetwork ${CMAKE_THREAD_LIBS_INIT})
|
||||
set(toxcore_PKGCONFIG_LIBS ${toxcore_PKGCONFIG_LIBS} "-l${CMAKE_THREAD_LIBS_INIT}")
|
||||
set(toxcore_PKGCONFIG_LIBS ${toxcore_PKGCONFIG_LIBS} ${CMAKE_THREAD_LIBS_INIT})
|
||||
endif()
|
||||
|
||||
if(RT_LIBRARIES)
|
||||
|
@ -525,6 +525,8 @@ endif()
|
|||
#
|
||||
################################################################################
|
||||
|
||||
string(REPLACE ";" " " toxcore_PKGCONFIG_LIBS "${toxcore_PKGCONFIG_LIBS}")
|
||||
|
||||
if(BUILD_TOXAV)
|
||||
configure_file(
|
||||
"${CMAKE_SOURCE_DIR}/other/pkgconfig/toxav.pc.in"
|
||||
|
|
Loading…
Reference in New Issue
Block a user