Skip to content

Commit

Permalink
fix heatf pkg-config file and bmic, bmicxx pkg-config names
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Mar 11, 2024
1 parent c795a9d commit a16ef56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions babelizer/data/{{cookiecutter.package_name}}/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ project(

{%- if cookiecutter.language == 'c' %}
lang = 'c'
bmilib = 'bmiheatc'
bmilib = 'BmiHeatC'
{%- elif cookiecutter.language == 'c++' %}
lang = 'cpp'
bmilib = 'bmiheatcxx'
bmilib = 'BmiHeatCXX'
{%- elif cookiecutter.language == 'fortran' %}
lang = 'fortran'
bmilib = 'bmiheatf'
Expand Down
7 changes: 4 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ def test_langs(session: nox.session, lang) -> None:
print(bmiheatf_pc, file=fp)

heatf_pc = f"""\
_prefix={os.environ.get('CMAKE_PREFIX_PATH', instdir)}
exec_prefix=${{_prefix}}
prefix={instdir!s}
exec_prefix=${{prefix}}
libdir=${{exec_prefix}}/lib
includedir=${{_prefix}}/include
includedir=${{prefix}}/include
Name: heatf
Description: Heat Fortran
Expand All @@ -86,6 +86,7 @@ def test_langs(session: nox.session, lang) -> None:
session.debug(f"{k}: {v!r}")

with session.chdir(package):
session.run("pkg-config", "--list-all")
session.run("python", "-m", "pip", "install", ".[dev]")

with session.chdir(testdir):
Expand Down

0 comments on commit a16ef56

Please sign in to comment.