Skip to content

Commit 507be95

Browse files
committed
Fixes
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent 3887d0d commit 507be95

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

config.cmake.in

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,17 @@
33
include(CMakeFindDependencyMacro)
44

55
find_dependency(ZLIB CONFIG)
6-
find_dependency(MbedTLS CONFIG)
6+
7+
if(NOT WIN32)
8+
find_dependency(MbedTLS CONFIG)
9+
endif()
10+
711
find_dependency(Nghttp2 CONFIG)
8-
find_dependency(CAres CONFIG)
12+
13+
if(NOT WIN32)
14+
find_dependency(CAres CONFIG)
15+
endif()
16+
917
find_dependency(PSL CONFIG)
1018
find_dependency(CURL CONFIG)
1119
find_dependency(CPR CONFIG)
@@ -14,16 +22,20 @@ if(TARGET zlib AND NOT TARGET ZLIB::ZLIB)
1422
add_library(ZLIB::ZLIB ALIAS zlib)
1523
endif()
1624

17-
if(TARGET mbedtls AND NOT TARGET MbedTLS::mbedtls)
18-
add_library(MbedTLS::mbedtls ALIAS mbedtls)
25+
if(NOT WIN32)
26+
if(TARGET mbedtls AND NOT TARGET MbedTLS::mbedtls)
27+
add_library(MbedTLS::mbedtls ALIAS mbedtls)
28+
endif()
1929
endif()
2030

2131
if(TARGET nghttp2 AND NOT TARGET Nghttp2::nghttp2)
2232
add_library(Nghttp2::nghttp2 ALIAS nghttp2)
2333
endif()
2434

25-
if(TARGET cares AND NOT TARGET CAres::cares)
26-
add_library(CAres::cares ALIAS cares)
35+
if(NOT WIN32)
36+
if(TARGET cares AND NOT TARGET CAres::cares)
37+
add_library(CAres::cares ALIAS cares)
38+
endif()
2739
endif()
2840

2941
if(TARGET psl AND NOT TARGET PSL::psl)

0 commit comments

Comments
 (0)