Skip to content

Commit

Permalink
Merge pull request SIPp#706 from orgads/sctp-fail
Browse files Browse the repository at this point in the history
Build: Fail on CMake when enabling SCTP if it is not found
  • Loading branch information
orgads authored Apr 1, 2024
2 parents 19626b6 + d296f52 commit 1715a68
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,8 @@ endif(USE_PCAP)

if(USE_SCTP)
find_library(SCTP_LIBRARY sctp)
if(SCTP_LIBRARY)
target_link_libraries(sipp ${SCTP_LIBRARY})
target_link_libraries(sipp_unittest ${SCTP_LIBRARY})
endif()
target_link_libraries(sipp ${SCTP_LIBRARY})
target_link_libraries(sipp_unittest ${SCTP_LIBRARY})
endif()

if(BUILD_STATIC AND MSYS)
Expand Down

0 comments on commit 1715a68

Please sign in to comment.