From 19b194804cd5c12c912e2c2ccb3b4e768fb331b5 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sun, 30 Jan 2022 16:49:39 +0800 Subject: [PATCH] Set static libxml2 definition globally to avoid linker errors --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d5300a609..02652ffc3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -207,7 +207,7 @@ ENDIF() NL_CONFIGURE_CHECKS() IF(WITH_STATIC_LIBXML2) - SET(LIBXML2_DEFINITIONS ${LIBXML2_DEFINITIONS} -DLIBXML_STATIC) + ADD_DEFINITIONS(-DLIBXML_STATIC) ENDIF() IF(WITH_LIBXML2_ICONV)