build: Append the HAVE_* definitions to UVGRTP_CXX_FLAGS.
This commit is contained in:
parent
64a0ab879e
commit
6dcd709773
|
@ -159,12 +159,15 @@ if (UNIX)
|
|||
check_cxx_symbol_exists(sendmmsg sys/socket.h HAVE_SENDMMSG)
|
||||
|
||||
if(HAVE_GETRANDOM)
|
||||
list(APPEND UVGRTP_CXX_FLAGS "-DHAVE_GETRANDOM=1")
|
||||
target_compile_definitions(${PROJECT_NAME} PRIVATE HAVE_GETRANDOM=1)
|
||||
endif()
|
||||
if(HAVE_SENDMSG)
|
||||
list(APPEND UVGRTP_CXX_FLAGS "-DHAVE_SENDMSG=1")
|
||||
target_compile_definitions(${PROJECT_NAME} PRIVATE HAVE_SENDMSG=1)
|
||||
endif()
|
||||
if(HAVE_SENDMMSG)
|
||||
list(APPEND UVGRTP_CXX_FLAGS "-DHAVE_SENDMMSG=1")
|
||||
target_compile_definitions(${PROJECT_NAME} PRIVATE HAVE_SENDMMSG=1)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue