Skip to content

Commit

Permalink
[build] Fixed building with deprecated ENABLE_EXPERIMENTAL_BONDING
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Jun 13, 2022
1 parent 8d1643e commit ccb47af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -677,9 +677,10 @@ endif()
# ENABLE_EXPERIMENTAL_BONDING is deprecated. Use ENABLE_BONDING. ENABLE_EXPERIMENTAL_BONDING is be removed in v1.6.0.
if (ENABLE_EXPERIMENTAL_BONDING)
message(DEPRECATION "ENABLE_EXPERIMENTAL_BONDING is deprecated. Please use ENABLE_BONDING instead.")
set (ENABLE_BONDING ON)
endif()

if (ENABLE_BONDING OR ENABLE_EXPERIMENTAL_BONDING)
if (ENABLE_BONDING)
list(APPEND SRT_EXTRA_CFLAGS "-DENABLE_BONDING=1")
message(STATUS "ENABLE_BONDING: ON")
else()
Expand Down

0 comments on commit ccb47af

Please sign in to comment.