From f2e85f2a64f80bf0131bb846a5e8d3271dd167eb Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 4 Sep 2010 20:19:38 +0200 Subject: [PATCH] Changed: Use LIBXML_STATIC if building static libraries --- code/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index e11a4efc3..0a94992ff 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -96,6 +96,10 @@ FIND_PACKAGE(LibXml2 REQUIRED) FIND_PACKAGE(PNG REQUIRED) FIND_PACKAGE(Jpeg) +IF(WITH_STATIC) + SET(LIBXML2_DEFINITIONS ${LIBXML2_DEFINITIONS} -DLIBXML_STATIC) +ENDIF(WITH_STATIC) + NL_SETUP_BUILD() IF(WITH_MFC)