From e78669fc218c2a939384e3cb502af87d4894362b Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Tue, 18 Apr 2023 10:44:06 +0100 Subject: [PATCH] Set LIBXML2_LIBRARIES for static lib --- external/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 5856f6632..4fd469e98 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -1353,6 +1353,8 @@ if (WIN32 OR APPLE) set(LIBIIO_LIBRARIES "${SDRANGEL_BINARY_LIB_DIR}/libiio.lib" CACHE INTERNAL "") makeCopy("${source_dir}/win32/bin.msvc/libxml2${CMAKE_SHARED_LIBRARY_SUFFIX}" "${SDRANGEL_BINARY_BIN_DIR}/libxml2${CMAKE_SHARED_LIBRARY_SUFFIX}" libxml2) install(FILES "${source_dir}/win32/bin.msvc/libxml2${CMAKE_SHARED_LIBRARY_SUFFIX}" DESTINATION "${INSTALL_LIB_DIR}") + else () + set(LIBXML2_LIBRARIES "${EXTERNAL_BUILD_LIBRARIES}/libxml2/lib/libxml2.a" CACHE INTERNAL "") endif () if (WIN32) set(IIO_LIBUSB_INCLUDE_DIR ${LIBUSB_INCLUDE_DIR})