Commit 78e6ef49 authored by DanmeiChen's avatar DanmeiChen

set CoreServices CFNetwork for only ios

parent cddb4bef
......@@ -38,8 +38,11 @@ if(LIBXSD_INCLUDE_DIRS)
list(APPEND LIBXSD_INCLUDE_DIRS ${XercesC_INCLUDE_DIRS})
endif()
set(LIBXSD_LIBRARIES ${XercesC_LIBRARIES} "-framework CoreServices")
if(APPLE)
set(LIBXSD_LIBRARIES ${XercesC_LIBRARIES} "-framework CoreServices")
else()
set(LIBXSD_LIBRARIES ${XercesC_LIBRARIES})
endif()
include(FindPackageHandleStandardArgs)
......
......@@ -28,8 +28,10 @@ set(LIBS
${XML2_LIBRARIES}
${BELR_LIBRARIES}
${LIBXSD_LIBRARIES}
"-framework CFNetwork"
)
if(APPLE)
list(APPEND LIBS "-framework CFNetwork")
endif()
if(WIN32 AND NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
list(APPEND LIBS "Ws2_32")
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment