Skip to content

qt-build-utils: allow QMAKE to be a script #1276

Open
@SanderVocke

Description

@SanderVocke

qt-build-utils expects QMAKE to point to the qmake binary. However, some Qt installations come with wrappers for qmake.

Example: qt built with vcpkg comes with a qmake.debug.bat in the same folder as qmake.exe, which wraps it to point to the debug build of Qt.

qt-build-utils currently cannot handle passing such a script as QMAKE, because it uses Command::new to execute it - and this only works with binaries, not with scripts.

I suppose to invoke cmd on the passed QMAKE instead, so that this use-case works. If you agree, I would be happy to provide a pull request.

An alternative solution would be to add another env var, QTCONF, which points to the qt conf file for qmake to use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions