Commit 77355de65f5bd9aac1fa58ea0dd2edb706055eb2

Authored by Jürgen Knödlseder
1 parent 4c5082b8

Always set extra flags

Showing 1 changed file with 7 additions and 3 deletions
pyext/setup.py.in
... ... @@ -132,10 +132,14 @@ if is_unit_test:
132 132 else:
133 133 data_files=[('@prefix@/share/ctools/swig', install_files)]
134 134  
  135 +# Optionally add OpenMP support
135 136 if '@OPENMP_TRUE@' != '#':
136   - extra_compile_args=['-fopenmp']
137   - extra_link_args=['-fopenmp']
138   -
  137 + extra_compile_args=['-fopenmp']
  138 + extra_link_args=['-fopenmp']
  139 +else:
  140 + extra_compile_args=[]
  141 + extra_link_args=[]
  142 +
139 143 # Setup
140 144 setup(name='@PACKAGE_NAME@',
141 145 version='@PACKAGE_VERSION@',
... ...