Skip to content

Commit

Permalink
Add cmake option to select IPv6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
zuckschwerdt committed Mar 2, 2022
1 parent 0a2272b commit 8dffa04
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,17 @@ if(FORCE_COLORED_BUILD)
endif()
endif()

########################################################################
# Enable IPv6 support
########################################################################
option(ENABLE_IPV6 "Enable IPv6 support" TRUE)
if(ENABLE_IPV6)
message(STATUS "IPv6 support enabled.")
ADD_DEFINITIONS(-DMG_ENABLE_IPV6=1)
else()
message(STATUS "IPv6 support disabled.")
endif()

########################################################################
# Find Threads support build dependencies
########################################################################
Expand Down

0 comments on commit 8dffa04

Please sign in to comment.