From f4de261c9de02fbd33ee35628743ed1e0f65d207 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste CAYROU Date: Mon, 30 Jul 2012 10:55:32 +0200 Subject: [PATCH] Add openmp flag for swig --- pyext/setup.py.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyext/setup.py.in b/pyext/setup.py.in index c69f879..37887e5 100644 --- a/pyext/setup.py.in +++ b/pyext/setup.py.in @@ -132,6 +132,10 @@ if is_unit_test: else: data_files=[('@prefix@/share/ctools/swig', install_files)] +if '@OPENMP_TRUE@' != '#': + extra_compile_args=['-fopenmp'] + extra_link_args=['-fopenmp'] + # Setup setup(name='@PACKAGE_NAME@', version='@PACKAGE_VERSION@', @@ -144,7 +148,9 @@ setup(name='@PACKAGE_NAME@', include_dirs=include_dirs, library_dirs=library_dirs, libraries=libraries, - runtime_library_dirs=runtime_library_dirs)], + runtime_library_dirs=runtime_library_dirs, + extra_compile_args=extra_compile_args, + extra_link_args=extra_link_args)], data_files=data_files, license="GNU GPL v3", long_description="CTA science analysis tools", -- libgit2 0.21.4