2020-04-18 05:13:24 +08:00
|
|
|
_find_package(${ARGS})
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
list(APPEND LibUV_LIBRARIES iphlpapi psapi shell32 userenv ws2_32)
|
|
|
|
if(TARGET LibUV::LibUV)
|
2021-09-03 04:21:52 +08:00
|
|
|
set_property(TARGET LibUV::LibUV APPEND PROPERTY INTERFACE_LINK_LIBRARIES iphlpapi psapi shell32 userenv ws2_32)
|
2020-04-18 05:13:24 +08:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
find_dependency(Threads)
|
|
|
|
list(APPEND LibUV_LIBRARIES Threads::Threads)
|
|
|
|
if(TARGET LibUV::LibUV)
|
2021-09-03 04:21:52 +08:00
|
|
|
set_property(TARGET LibUV::LibUV APPEND PROPERTY INTERFACE_LINK_LIBRARIES Threads::Threads)
|
2020-04-18 05:13:24 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
|