more robust cairo lib addition - addresses #371

This commit is contained in:
Dane Springmeyer 2009-06-30 22:12:11 +00:00
parent 40adc2c03f
commit 1ce6266738

View file

@ -38,9 +38,9 @@ regex = 'boost_regex%s' % env['BOOST_APPEND']
libraries = ['freetype','ltdl','png','tiff','z','jpeg','proj','icuuc',filesystem,regex]
if env['CAIRO']:
libraries.append('cairo')
libraries.append('cairomm-1.0')
if '-DHAVE_CAIRO' in env['CXXFLAGS']:
# add cairo and cairomm-1.0 to libs
libraries.append([lib for lib in env['LIBS'] if lib.startswith('cairo')])
if env['XMLPARSER'] == 'libxml2':
libraries.append('xml2')