From 555ced5ed96828bd332623665c0565cd8b3a0df6 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 2 Dec 2015 12:49:00 +0000 Subject: Use OpenMP when comparing picture assets. --- wscript | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index 2d58e696..229efa7b 100644 --- a/wscript +++ b/wscript @@ -16,6 +16,7 @@ def options(opt): opt.add_option('--disable-tests', action='store_true', default=False, help='disable building of tests') opt.add_option('--disable-gcov', action='store_true', default=False, help='don''t use gcov in tests') opt.add_option('--disable-examples', action='store_true', default=False, help='disable building of examples') + opt.add_option('--enable-openmp', action='store_true', default=False, help='enable use of OpenMP') def configure(conf): conf.load('compiler_cxx') @@ -38,6 +39,10 @@ def configure(conf): if not conf.env.TARGET_OSX: conf.env.append_value('CXXFLAGS', ['-Wno-unused-result', '-Wno-unused-parameter']) + if conf.options.enable_openmp: + conf.env.append_value('CXXFLAGS', '-fopenmp') + conf.env.LIB_OPENMP = ['gomp'] + conf.check_cfg(package='openssl', args='--cflags --libs', uselib_store='OPENSSL', mandatory=True) conf.check_cfg(package='libxml++-2.6', args='--cflags --libs', uselib_store='LIBXML++', mandatory=True) conf.check_cfg(package='xmlsec1', args='--cflags --libs', uselib_store='XMLSEC1', mandatory=True) -- cgit v1.2.3