Fixed generated CLion project for platforms that use PROGPREFIX or PROGSUFFIX (e.g. Windows).
This commit is contained in:
parent
a0bbb46e51
commit
329278c5f5
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user