mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
WIN32 use default location if BONJOUR_SDK_HOME not set
This commit is contained in:
@@ -133,7 +133,11 @@ if ( NOT APPLE )
|
||||
target_link_libraries(airplay PUBLIC ${DNSSD} )
|
||||
else() # can also build if mDNSResponder or another implementation of dns_sd is present instead of Avahi
|
||||
if ( WIN32 )
|
||||
set(BONJOUR_SDK "$ENV{BONJOUR_SDK_HOME}" )
|
||||
if (DEFINED ENV{BONJOUR_SDK_HOME})
|
||||
set(BONJOUR_SDK "$ENV{BONJOUR_SDK_HOME}" )
|
||||
else()
|
||||
set(BONJOUR_SDK "C:\\Program Files\\Bonjour SDK")
|
||||
endif()
|
||||
message( STATUS "BONJOUR_SDK_HOME " ${BONJOUR_SDK} )
|
||||
set(DNSSD "${BONJOUR_SDK}/Lib/x64/dnssd.lib")
|
||||
target_link_libraries(airplay ${DNSSD} )
|
||||
|
||||
Reference in New Issue
Block a user