Skip to content

Commit

Permalink
qmake plugin: append source to configure command before conditional a…
Browse files Browse the repository at this point in the history
…nd shorten conditional.
  • Loading branch information
ScarlettGatelyMoore committed Aug 25, 2023
1 parent b57d6b5 commit 143a9d0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions craft_parts/plugins/qmake_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,15 @@ def get_build_commands(self) -> List[str]:
'QMAKE_LFLAGS+="${LDFLAGS:-}"',
] + options.qmake_parameters

qmake_configure_command.append(f'"{self._part_info.part_src_dir}"')

if options.qmake_project_file:
qmake_configure_command.extend(
[
f'"{self._part_info.part_src_dir}"',
"/",
f'"{options.qmake_project_file}"',
]
)
else:
qmake_configure_command.append(f'"{self._part_info.part_src_dir}"')

return [
" ".join(qmake_configure_command),
Expand Down

0 comments on commit 143a9d0

Please sign in to comment.