cmake_minimum_required(VERSION 2.8)

project(libusrsctp-download NONE)

include(ExternalProject)

ExternalProject_Add(project_libusrsctp
    GIT_REPOSITORY    https://github.com/sctplab/usrsctp.git
    GIT_TAG           913de3599feded8322882bdae69f346da5a258fc
    PREFIX            ${CMAKE_CURRENT_BINARY_DIR}/build
    CMAKE_ARGS        -DCMAKE_INSTALL_PREFIX=${OPEN_SRC_INSTALL_PREFIX} -Dsctp_werror=0
    BUILD_ALWAYS      TRUE
    TEST_COMMAND      ""
)

cmake_minimum_required(VERSION 2.8)

project(libusrsctp-download NONE)

include(ExternalProject)

ExternalProject_Add(project_libusrsctp
    GIT_REPOSITORY    https://github.com/sctplab/usrsctp.git
    GIT_TAG           939d48f9632d69bf170c7a84514b312b6b42257d
    PREFIX            ${CMAKE_CURRENT_BINARY_DIR}/build
    CMAKE_ARGS        -DCMAKE_INSTALL_PREFIX=${OPEN_SRC_INSTALL_PREFIX} -Dsctp_werror=0
    BUILD_ALWAYS      TRUE
    TEST_COMMAND      ""
)

Fix a deadlock in usrsctp_finish
Fix a deadlock in usrsctp_finish

The deadlock occurs when it's running on 2 virtual cores ubuntu machines
with some very specific sequences.

References:
* Discussions on usrsctp, https://github.com/sctplab/usrsctp/issues/325
* Fix commit on usrsctp, https://github.com/sctplab/usrsctp/commit/939d48f9632d69bf170c7a84514b312b6b42257d
