mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 22:18:58 +08:00
4d8237b89c
* [libarchive] fix static linkage of libarchive in dependent ports (non yet) * [libuv] fix static builds of dependent ports * modernize portfiles * remove POSIX_REGEX_LIB=NONE since it is added elsewhere * remove debug message
17 lines
467 B
CMake
17 lines
467 B
CMake
_find_package(${ARGS})
|
|
|
|
if(WIN32)
|
|
list(APPEND LibUV_LIBRARIES iphlpapi psapi shell32 userenv ws2_32)
|
|
if(TARGET LibUV::LibUV)
|
|
target_link_libraries(LibUV::LibUV INTERFACE iphlpapi psapi shell32 userenv ws2_32)
|
|
endif()
|
|
endif()
|
|
include(CMakeFindDependencyMacro)
|
|
find_dependency(Threads)
|
|
list(APPEND LibUV_LIBRARIES Threads::Threads)
|
|
if(TARGET LibUV::LibUV)
|
|
target_link_libraries(LibUV::LibUV INTERFACE Threads::Threads)
|
|
endif()
|
|
|
|
|