Skip to content

Commit

Permalink
Use pkg-config. #5.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminRodenberg committed Oct 21, 2021
1 parent dadad11 commit edcb9c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit edcb9c6

Please sign in to comment.