Open evilenzo opened 1 year ago
Trying to build qt with qml, getting such error when trying to use qt_add_qml_module in my CMakeLists.txt
qt_add_qml_module
[cmake] -- Configuring incomplete, errors occurred! [cmake] CMake Error at CMakeLists.txt:83 (qt_add_qml_module): [cmake] Unknown CMake command "qt_add_qml_module".
Host profile: [settings] arch=x86_64 build_type=Release compiler=msvc compiler.cppstd=23 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=193 os=Windows
Build profile: [settings] arch=x86_64 build_type=Release compiler=msvc compiler.cppstd=23 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=193 os=Windows
from conan import ConanFile, tools from conan.tools.cmake import cmake_layout, CMake class HeatEngine(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "CMakeDeps", "CMakeToolchain" def layout(self): cmake_layout(self) def requirements(self): self.requires("qt/6.4.2") self.requires("brotli/1.1.0", override=True) self.requires("vsg/1.0.3") self.requires("tl-optional/1.1.0") self.requires("tl-expected/1.1.0") self.requires("fmt/10.1.1")
Install and try to use qt_add_qml_module
IDK which logs I should provide...
@evilenzo you probably want to enable option qt/*:qtdeclarative=True If it still fails, please post the conanfile.py, CMakelists.txt and full console log of the failure
qt/*:qtdeclarative=True
Description
Trying to build qt with qml, getting such error when trying to use
qt_add_qml_module
in my CMakeLists.txtPackage and Environment Details
Conan profile
Host profile: [settings] arch=x86_64 build_type=Release compiler=msvc compiler.cppstd=23 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=193 os=Windows
Build profile: [settings] arch=x86_64 build_type=Release compiler=msvc compiler.cppstd=23 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=193 os=Windows
Steps to reproduce
Install and try to use
qt_add_qml_module
Logs
IDK which logs I should provide...