Fixed generated CLion project for platforms that use PROGPREFIX or PROGSUFFIX (e.g. Windows).

This commit is contained in:
Patrick 2024-10-11 10:21:21 +02:00
parent a0bbb46e51
commit 329278c5f5

View File

@ -493,6 +493,7 @@ def _generate_project(project_type: str) -> None:
if target.target_type == TargetType.PROGRAM:
trgt = _target_entry(target.kwargs['target'])
exe_path = pathlib.Path(trgt.abspath).relative_to(root_path)
exe_path = exe_path.parent / f'{env["PROGPREFIX"]}{exe_path.name}{env["PROGSUFFIX"]}'
result.append({
'name': target.name,
'filename': str(exe_path)