From 60ab81a5c7d76ee67b7a776e8368a2f268092353 Mon Sep 17 00:00:00 2001 From: qingfuliao <45161976+qingfuliao@users.noreply.github.com> Date: Sat, 30 Oct 2021 12:12:06 +0800 Subject: [PATCH] IDE: Fix build problem caused by ffmpeg/pthread dependency. (#2579) --- trunk/ide/srs_clion/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trunk/ide/srs_clion/CMakeLists.txt b/trunk/ide/srs_clion/CMakeLists.txt index 6c736d598e..1108fb66a2 100755 --- a/trunk/ide/srs_clion/CMakeLists.txt +++ b/trunk/ide/srs_clion/CMakeLists.txt @@ -25,9 +25,9 @@ set(DEPS_LIBS ${SRS_DIR}/objs/st/libst.a ${SRS_DIR}/objs/openssl/lib/libssl.a ${SRS_DIR}/objs/openssl/lib/libcrypto.a ${SRS_DIR}/objs/srtp2/lib/libsrtp2.a - ${SRS_DIR}/objs/opus/lib/libopus.a - ${SRS_DIR}/objs/ffmpeg/lib/libavutil.a ${SRS_DIR}/objs/ffmpeg/lib/libavcodec.a + ${SRS_DIR}/objs/ffmpeg/lib/libavutil.a + ${SRS_DIR}/objs/opus/lib/libopus.a ${SRS_DIR}/objs/ffmpeg/lib/libswresample.a) foreach(DEPS_LIB ${DEPS_LIBS}) IF (NOT EXISTS ${DEPS_LIB}) @@ -62,7 +62,7 @@ ADD_DEFINITIONS("-g -O0") ADD_EXECUTABLE(srs ${SOURCE_FILES}) TARGET_LINK_LIBRARIES(srs dl) TARGET_LINK_LIBRARIES(srs ${DEPS_LIBS}) -TARGET_LINK_LIBRARIES(srs -ldl) +TARGET_LINK_LIBRARIES(srs -ldl -pthread) MESSAGE(STATUS "@see https://github.com/ossrs/srs/wiki/v4_CN_IDE")