Skip to content

Commit d87f1e5

Browse files
committed
Fix missing parameterizations in cpp template
1 parent c124449 commit d87f1e5

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

cpp/cpp/cpp-template/extension.cpp

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#include "{{project_name_formatted}}/extension.hpp"
2+
3+
int add(int i, int j) { return i + j; }
File renamed without changes.

cpp/pyproject.toml.jinja

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ fail_under = 50
112112

113113
[tool.hatch.build]
114114
artifacts = [
115-
"project/*.dll",
116-
"project/*.dylib",
117-
"project/*.so",
115+
"{{module}}/*.dll",
116+
"{{module}}/*.dylib",
117+
"{{module}}/*.so",
118118
]
119119

120120
[tool.hatch.build.sources]
@@ -123,7 +123,7 @@ src = "/"
123123
[tool.hatch.build.hooks.hatch-cpp]
124124
verbose = true
125125
libraries = [
126-
{name = "{{module}}/extension", sources = ["cpp/cpp-template/extension.cpp"], include-dirs = ["cpp"], binding="pybind11"}
126+
{name = "{{module}}/extension", sources = ["cpp/{{project_name_formatted}}/extension.cpp"], include-dirs = ["cpp"], binding="pybind11"}
127127
]
128128

129129
[tool.hatch.build.targets.sdist]

0 commit comments

Comments
 (0)