CMake: fix build for QtNetwork on macOS

Change-Id: I32e4550d67e9d72b56de4aafaddec5e2f80792b8
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Liang Qi 2019-01-17 09:44:53 +01:00
parent 0c43850687
commit 4bb44a17f6

View File

@ -204,6 +204,12 @@ extend_target(Network CONDITION (UNIX) AND (NOT ((UNIX) AND (QT_FEATURE_linux_ne
SOURCES
kernel/qnetworkinterface_unix.cpp
)
# TODO: how to merge to above
extend_target(Network CONDITION APPLE_OSX
SOURCES
kernel/qnetworkinterface_unix.cpp
)
#
#extend_target(Network CONDITION ANDROID
#)
@ -305,6 +311,7 @@ extend_target(Network CONDITION (QT_FEATURE_ssl) AND (QT_FEATURE_securetransport
ssl/qsslkey_qt.cpp
ssl/qsslsocket_mac.cpp ssl/qsslsocket_mac_p.h
ssl/qsslsocket_mac_shared.cpp
ssl/qsslsocket_qt.cpp
)
extend_target(Network CONDITION (QT_FEATURE_ssl) AND (QT_FEATURE_dtls)