Skip to content

Commit fe922c9

Browse files
committed
Do not force reinitialization of forge-based cpp project.
1 parent 42b9efb commit fe922c9

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

lattice/lattice.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,9 @@ def cpp_support_headers(self) -> list[Path]:
255255
"""Wrap list of template-generated headers."""
256256
return support.support_header_pathnames(self.cpp_output_dir)
257257

258-
def generate_cpp_project(
258+
def generate_cpp_project( # noqa: PLR0913
259259
self,
260+
force_reinitialize=False,
260261
git_init=False,
261262
submodule_init=False,
262263
copyright_holder="",
@@ -273,8 +274,14 @@ def generate_cpp_project(
273274
spdx_license_id (str, optional): SPDX-compatible license string. Defaults to blank.
274275
"""
275276
self.forge.initialize_configuration(
276-
self.cpp_output_dir, self.root_directory.name, project_factory.ProjectType.cpp, False, False, False, True
277-
) # force = True
277+
self.cpp_output_dir,
278+
self.root_directory.name,
279+
project_factory.ProjectType.cpp,
280+
False,
281+
False,
282+
False,
283+
force_reinitialize,
284+
)
278285
self._add_project_submodules()
279286

280287
self.forge.edit_config(

0 commit comments

Comments
 (0)