Skip to content

Commit

Permalink
Build: Fail on CMake when enabling SCTP if it is not found
Browse files Browse the repository at this point in the history
Fixes SIPp#705.
  • Loading branch information
orgads committed Apr 1, 2024
1 parent 19626b6 commit d296f52
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 d296f52

Please sign in to comment.