diff --git a/trunk/auto/depends.sh b/trunk/auto/depends.sh index 349feec2f..46e307d0c 100755 --- a/trunk/auto/depends.sh +++ b/trunk/auto/depends.sh @@ -693,6 +693,11 @@ fi if [[ $SRS_SRT == YES && $SRS_USE_SYS_SRT == NO ]]; then # Always disable c++11 for libsrt, because only the srt-app requres it. LIBSRT_OPTIONS="--enable-apps=0 --enable-static=1 --enable-c++11=0" + CMAKE_VERSION=$(cmake --version | head -n1 | cut -d' ' -f3) + CMAKE_MAJOR=$(echo $CMAKE_VERSION | cut -d'.' -f1) + if [[ $CMAKE_MAJOR -ge 4 ]]; then + LIBSRT_OPTIONS="$LIBSRT_OPTIONS --CMAKE_POLICY_VERSION_MINIMUM=3.5" + fi if [[ $SRS_SHARED_SRT == YES ]]; then LIBSRT_OPTIONS="$LIBSRT_OPTIONS --enable-shared=1" else diff --git a/trunk/doc/CHANGELOG.md b/trunk/doc/CHANGELOG.md index 58c71a770..bfb95dd41 100644 --- a/trunk/doc/CHANGELOG.md +++ b/trunk/doc/CHANGELOG.md @@ -7,6 +7,7 @@ The changelog for SRS. ## SRS 7.0 Changelog +* v7.0, 2025-08-12, Merge [#4431](https://github.com/ossrs/srs/pull/4431): fix srt cmake 4.x compiling error. v7.0.52 (#4431) * v7.0, 2025-08-11, Merge [#4433](https://github.com/ossrs/srs/pull/4433): Use clang format. v7.0.52 (#4433) * v7.0, 2025-08-11, Merge [#4159](https://github.com/ossrs/srs/pull/4159): Feature: Support HLS with fmp4 segment for HEVC/LLHLS. v7.0.51 (#4159) * v7.0, 2025-08-11, Merge [#4432](https://github.com/ossrs/srs/pull/4432): AI: HTTP-FLV: Fix heap-use-after-free crash during stream unmount. v7.0.50 (#4432)