Fixed Windows not linking properly to LibXML2.

This commit is contained in:
Yohan Boujon 2025-03-10 15:27:24 +01:00
parent 1d75b2ac0f
commit f666903a88
3 changed files with 3 additions and 2 deletions

View file

@ -8,6 +8,7 @@ set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON) set(CMAKE_C_STANDARD_REQUIRED ON)
# Dependencies # Dependencies
set(CMAKE_TLS_VERIFY FALSE) # Custom TLS/Proxy sometimes does not enable download
include(dependencies.cmake) include(dependencies.cmake)
# Game source files # Game source files

View file

@ -2,7 +2,7 @@
![Static Badge](https://img.shields.io/badge/license-CeCILL_C-lightgrey) ![Static Badge](https://img.shields.io/badge/license-CeCILL_C-lightgrey)
![Static Badge](https://img.shields.io/badge/builds_on-Linux-brightgreen) ![Static Badge](https://img.shields.io/badge/builds_on-Linux-brightgreen)
![Static Badge](https://img.shields.io/badge/builds_on-Windows-red) ![Static Badge](https://img.shields.io/badge/builds_on-Windows-brightgreen)
Here is an example of the cmake fetch if the `find_package()` cannot be used. Fetch is useful when building custom version of popular libraries. Here is an example of the cmake fetch if the `find_package()` cannot be used. Fetch is useful when building custom version of popular libraries.

View file

@ -24,7 +24,7 @@ target_include_directories(${TARGET} PRIVATE "${Poco_INCLUDE_DIRS}")
# Libraries # Libraries
target_link_libraries( target_link_libraries(
${TARGET} PRIVATE ${TARGET} PRIVATE
${LIBXML2_LIBRARY} LibXml2
PocoFoundation PocoFoundation
PocoUtil PocoUtil
PocoNet PocoNet