From e97df7a721555a82a2dd90197f96762db9626a99 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 1 Jul 2009 02:24:13 +0000 Subject: [PATCH] fix up compilation of rundemo based on cairo availability - closes #285 --- demo/c++/SConscript | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/demo/c++/SConscript b/demo/c++/SConscript index 238812ed2..8f734d718 100644 --- a/demo/c++/SConscript +++ b/demo/c++/SConscript @@ -36,12 +36,13 @@ boost_thread = 'boost_thread%s' % env['BOOST_APPEND'] libraries = [boost_thread,'mapnik'] -if env['CAIRO']: - libraries.append('cairo') +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['PLATFORM'] == 'Darwin': libraries.append('icuuc') - libraries.append('icudata') + #libraries.append('icudata') rundemo = env.Program('rundemo', source, CPPPATH=headers, LIBS=libraries)