File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -562,8 +562,16 @@ macro(libmamba_create_target target_name linkage output_name)
562
562
elseif (WIN32 )
563
563
564
564
set (CMAKE_PREFIX_PATH "$ENV{VCPKG_ROOT} /installed/x64-windows-static-md/" )
565
- set (ENABLE_WIN32_XMLLITE ON ) # libarchive uses xmllite on windows if using libxml and
566
- # not expat
565
+
566
+ # TODO AND CONTEXT: We found a link error in libarchive which lacked a link to
567
+ # XmlLite which is provided by Windows. libarchive has cmake
568
+ # scripts doing the necessary work to link that library but for some
569
+ # reason we couldnt idenfity it is not linking in this specific case
570
+ # (it was before but the version changed apparently). As a workaround
571
+ # we manually link with that required library but a better solution
572
+ # would be to find why libarchive doesnt do it itself.
573
+ set (SYSTEM_PROVIDED_LIBRARIES XmlLite.lib ) # required by libarchive
574
+ set (ENABLE_WIN32_XMLLITE ON )
567
575
568
576
# For Windows we have a vcpkg based build system right now.
569
577
find_package (LibArchive MODULE REQUIRED )
@@ -584,7 +592,7 @@ macro(libmamba_create_target target_name linkage output_name)
584
592
${target_name}
585
593
PUBLIC
586
594
${CRYPTO_LIBRARIES}
587
- XmlLite.lib # required by libarchive
595
+ ${SYSTEM_PROVIDED_LIBRARIES}
588
596
${LibArchive_LIBRARY}
589
597
${LIBXML2_LIBRARY}
590
598
${ICONV_LIBRARY}
You can’t perform that action at this time.
0 commit comments