Skip to content

Commit 4ee6449

Browse files
committed
Set compiler flags in python packaging
1 parent 1f5f998 commit 4ee6449

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

extras/python/setup.in.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ def run(self):
3434
sources=glob.glob('src/*.cpp') + glob.glob('src/*.c') + ['src/titanlibPYTHON_wrap.cxx'],
3535
libraries=["gsl", "gslcblas", "proj"],
3636
library_dirs=["/usr/lib/x86_64-linux-gnu/"],
37+
extra_compile_args="${CMAKE_CXX_FLAGS}".split(),
38+
extra_link_args="${CMAKE_CXX_FLAGS}".split(),
3739
include_dirs=['./include']
3840
)
3941

0 commit comments

Comments
 (0)