-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
-
None
In Conan 2, recommended workflow is to explicitly run conan install before invoking CMake.
At the moment, before opening a new project in Qt Creator, I need to manually run:
conan install . --profile:all=myprofile -s build_type=Debug conan install . --profile:all=myprofile -s build_type=RelWithDebInfo
This is necessary to ensure that all dependencies are installed and that the CMake presets are generated. These presets are later used by Qt Creator during project import. Without them, the IDE cannot detect or apply the correct configuration.
It's also important to be able to run conan install automatically before CMake reconfiguration for an already existing project — not as a separate custom build step, as currently possible with Conan plugin.
I suggest extending the CMake Qt Vendor Presets with two new optional fields:
- executeBeforeOpenNewCMakeProject
- executeBeforeCMakeRun
These fields would allow specifying a custom command (e.g. conan install or a user-defined script) to be executed before Qt Creator opens a new CMake project or reconfigures an existing one.
Alternatively, a separate configuration file could be introduced to define this behavior, but I would prefer the vendor preset-based approach.
I would also be fully satisfied with any other solution that achieves the same behavior.
- relates to
-
QTCREATORBUG-33227 Ability to run scripts from the File System View
-
- Reported
-