diff --git a/setup.py b/setup.py index b6efc9ff..450b36c8 100644 --- a/setup.py +++ b/setup.py @@ -65,12 +65,13 @@ def get_extensions(is_test): link_args = [] compile_args.append("-std=c++11") compile_args.append("-I{}".format(numpy.get_include())) + compile_args.append("pkg-config --cflags libprecice") bindings_sources = [os.path.join(PYTHON_BINDINGS_PATH, "cyprecice", "cyprecice" + ".pyx")] if not is_test: - link_args.append("-lprecice") + link_args.append("pkg-config --libs") if is_test: bindings_sources.append(os.path.join(PYTHON_BINDINGS_PATH, "test", "SolverInterface.cpp"))