diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index dbd6f81..edf1548 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -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} )