diff --git a/setup.py b/setup.py index 89ac9b4..eb21e07 100644 --- a/setup.py +++ b/setup.py @@ -63,16 +63,18 @@ include_dirs = [libcaer_include, python_paths["include"], numpy_include] library_dirs = [libcaer_lib, python_paths["stdlib"]] +swig_opts = ["-I" + libcaer_include] if platform == "darwin": include_dirs += ["/usr/local/include"] library_dirs += ["/usr/local/lib"] + swig_opts += ["-I/usr/local/include"] libcaer_wrap = Extension( name="pyaer._libcaer_wrap", sources=["./pyaer/pyflags.i"], include_dirs=include_dirs, library_dirs=library_dirs, - swig_opts=["-I" + libcaer_include], + swig_opts=swig_opts, # extra_compile_args=["-std=c11"], extra_link_args=["-lcaer"], )