1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Update CMakeLists.txt

This commit is contained in:
Yan Naing Tun 2025-03-04 11:43:54 +08:00 committed by GitHub
parent b7766637d4
commit 8b5741882b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -90,6 +90,10 @@ TARGET_LINK_LIBRARIES(srs -ldl -pthread)
TARGET_LINK_LIBRARIES(srs -rdynamic)
TARGET_LINK_LIBRARIES(srs -fsanitize=address -fno-omit-frame-pointer)
# Ensure pthread is correctly linked
find_package(Threads REQUIRED)
target_link_libraries(srs Threads::Threads)
###########################################################
# For utest.
# See https://google.github.io/googletest/quickstart-cmake.html