[Qbs] How to explicitly prohibit the use of qt-framework in project

Christian Kandeler christian.kandeler at qt.io
Tue Oct 20 10:54:31 CEST 2020


On 10/19/20 8:26 PM, Карелин Павел wrote:
> Depends { name: "Qt"; submodules: ["core", "network"]; required: false}
> condition: Qt.core.present
>
> Then in QtC I created a profile without qt-framework, and I tried to 
> build the project. ... and the project was built.
> It turned out that QBS found qt-framework on my system (Linux Kubuntu).

Yes, because qmake was found in the PATH. Toolchains work the same way. 
If you don't explicitly set the respective property, auto-detection 
kicks in.


Christian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20201020/503ed6d8/attachment.html>


More information about the Qbs mailing list