From 56712c2435cc1c4c15be140f673d6c3edcab90e1 Mon Sep 17 00:00:00 2001 From: artemp Date: Thu, 30 Jul 2015 14:34:01 +0200 Subject: [PATCH] fix XMLPARSER=libxml2 logic --- src/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/build.py b/src/build.py index 3d9e3c4c9..bdc343803 100644 --- a/src/build.py +++ b/src/build.py @@ -84,7 +84,8 @@ if '-DHAVE_WEBP' in env['CPPDEFINES']: lib_env['LIBS'].append('webp') enabled_imaging_libraries.append('webp_reader.cpp') -if '-DHAVE_LIBXML2' in env['CPPDEFINES'] : lib_env['LIBS'].append('xml2') +if env['XMLPARSER'] == 'libxml2' and env['HAS_LIBXML2']: + lib_env['LIBS'].append('xml2') if '-DBOOST_REGEX_HAS_ICU' in env['CPPDEFINES']: lib_env['LIBS'].append('icui18n')