Use corresponding Bonjour libs for different versions of OS
This commit is contained in:
parent
5bd12f2376
commit
1e8e48d65b
|
@ -25,9 +25,16 @@ target_link_libraries (synergy shared)
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
include_directories ($ENV{BONJOUR_SDK_HOME}/Include)
|
include_directories ($ENV{BONJOUR_SDK_HOME}/Include)
|
||||||
find_library (DNSSD_LIB dnssd.lib
|
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
|
find_library (DNSSD_LIB dnssd.lib
|
||||||
HINTS ENV BONJOUR_SDK_HOME
|
HINTS ENV BONJOUR_SDK_HOME
|
||||||
PATH_SUFFIXES "Lib/x64")
|
PATH_SUFFIXES "Lib/x64")
|
||||||
|
else()
|
||||||
|
find_library (DNSSD_LIB dnssd.lib
|
||||||
|
HINTS ENV BONJOUR_SDK_HOME
|
||||||
|
PATH_SUFFIXES "Lib/Win32")
|
||||||
|
endif()
|
||||||
|
|
||||||
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||||
target_link_libraries (synergy dns_sd)
|
target_link_libraries (synergy dns_sd)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue