Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
2.6.1
-
None
Description
Hi!
I have a custom Conanfile probe that call `conan install`. This probe has property `offline` and its default value is false. If it's set to false this probe call conan with `-update` flag, otherwise with `-no-remote` flag:
// RtConanfileProbe.qbs Probe { ... property bool offline: false property stringList _args: { ... if (!project.offline) res.push("--update"); else res.push("--no-remote"); } ... } // myproject.qbs Project { RtConanfileProbe { id: conan } readonly property var conanDependencies: conan.dependencies ... }
When I need to build my project, when I'm offline i need to set it to true, and I want to do it using command line. Something like:
qbs profile:glibc-arm64-gcc11 project.conan.offline:true qbs profile:glibc-arm64-gcc11 RtConanfileProbe.offline:true qbs profile:glibc-arm64-gcc11 probes.RtConanfileProbe.offline:true
Is there any way how to do it or may be something similar to it? I only found that I could create the same property in project and pass to probe, but I want to do it easier