File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ find_package(Threads REQUIRED)
3838
3939set (CMAKE_TOOLCHAIN_FILE "${VCPKG_ROOT} /scripts/buildsystems/vcpkg.cmake" )
4040
41- # stuff we get from Conan
41+ # stuff we get from vcpkg
4242find_package (LibXml2 REQUIRED)
4343find_package (ZLIB REQUIRED)
4444find_package (fmt CONFIG REQUIRED)
@@ -153,6 +153,22 @@ target_link_libraries(libFBX2glTF
153153 Iconv::Iconv
154154)
155155
156+ # Windows-specific linking for XML libraries
157+ if (WIN32 )
158+ target_link_libraries (libFBX2glTF
159+ ws2_32
160+ winmm
161+ xmllite
162+ )
163+ # Ensure proper libxml2 linking on Windows
164+ if (TARGET LibXml2::LibXml2)
165+ get_target_property (LIBXML2_LIBRARIES LibXml2::LibXml2 INTERFACE_LINK_LIBRARIES)
166+ if (LIBXML2_LIBRARIES)
167+ target_link_libraries (libFBX2glTF ${LIBXML2_LIBRARIES} )
168+ endif ()
169+ endif ()
170+ endif ()
171+
156172target_include_directories (libFBX2glTF PUBLIC
157173 ${CMAKE_CURRENT_SOURCE_DIR} /src
158174 ${CMAKE_CURRENT_SOURCE_DIR} /thirdparty
You can’t perform that action at this time.
0 commit comments