File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed
Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change 33include (CMakeFindDependencyMacro)
44
55find_dependency(ZLIB CONFIG)
6- find_dependency(MbedTLS CONFIG)
6+
7+ if (NOT WIN32 )
8+ find_dependency(MbedTLS CONFIG)
9+ endif ()
10+
711find_dependency(Nghttp2 CONFIG)
8- find_dependency(CAres CONFIG)
12+
13+ if (NOT WIN32 )
14+ find_dependency(CAres CONFIG)
15+ endif ()
16+
917find_dependency(PSL CONFIG)
1018find_dependency(CURL CONFIG)
1119find_dependency(CPR CONFIG)
@@ -14,16 +22,20 @@ if(TARGET zlib AND NOT TARGET ZLIB::ZLIB)
1422 add_library (ZLIB::ZLIB ALIAS zlib)
1523endif ()
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 ()
1929endif ()
2030
2131if (TARGET nghttp2 AND NOT TARGET Nghttp2::nghttp2)
2232 add_library (Nghttp2::nghttp2 ALIAS nghttp2)
2333endif ()
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 ()
2739endif ()
2840
2941if (TARGET psl AND NOT TARGET PSL::psl)
You can’t perform that action at this time.
0 commit comments