mirror of https://github.com/procxx/kepka.git
Link in threading libraries if necessary
This commit is contained in:
parent
e4358bef35
commit
b25df92d35
|
@ -51,6 +51,9 @@ else(LINUX)
|
||||||
set(OPENAL_LIBRARY OpenAL::OpenAL)
|
set(OPENAL_LIBRARY OpenAL::OpenAL)
|
||||||
endif(LINUX)
|
endif(LINUX)
|
||||||
|
|
||||||
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||||
|
find_package(Threads)
|
||||||
|
|
||||||
find_package(ZLIB REQUIRED)
|
find_package(ZLIB REQUIRED)
|
||||||
find_package(FFmpeg REQUIRED)
|
find_package(FFmpeg REQUIRED)
|
||||||
find_package(Opus REQUIRED)
|
find_package(Opus REQUIRED)
|
||||||
|
|
|
@ -696,6 +696,8 @@ if (LINUX)
|
||||||
target_link_libraries(Telegram Qt5::DBus dl ${ALSA_LIBRARIES} ${PULSEAUDIO_LIBRARIES})
|
target_link_libraries(Telegram Qt5::DBus dl ${ALSA_LIBRARIES} ${PULSEAUDIO_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
target_link_libraries(Telegram Threads::Threads)
|
||||||
|
|
||||||
set_target_properties(Telegram
|
set_target_properties(Telegram
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
COTIRE_CXX_PREFIX_HEADER_INIT SourceFiles/stdafx.h
|
COTIRE_CXX_PREFIX_HEADER_INIT SourceFiles/stdafx.h
|
||||||
|
|
Loading…
Reference in New Issue