Conan install error on QtCreator 12.0.0/12.0.1
-
I make a issue to conan here: https://github.com/conan-io/cmake-conan/issues/608,
James, Conan co-founder, told me it is a problem of conan_provider.cmake.
The file path
conan_provider.cmake
which QtCreator 12.0.1 use isC:\Qt\Tools\QtCreator\share\qtcreator\package-manager
,
upgradeconan_provider.cmake
did not solve the problem.Thanks in advance.
-
Alternatively just download the auto-setup.cmake that will be part of Qt Creator 12.0.2.
-
Please do create a bug report at https://bugreports.qt.io/secure/CreateIssue.jspa?pid=10512 for better tracking.
Please attach the project as you would want it to work in Qt Creator.
I'll have a look at the issue and see how I can fix it from the Qt Creator side.
-
I've created the bug report at https://bugreports.qt.io/browse/QTCREATORBUG-30169
-
You can fix your Qt Creator 12.0.1 by modifying
c:\Qt\qtcreator-12.0.1\share\qtcreator\package-manager\auto-setup.cmake
and add:# Forward important CMake variables to the package manager in the toolchain file foreach(fwd_var CMAKE_MSVC_RUNTIME_LIBRARY CMAKE_SYSROOT CMAKE_OSX_SYSROOT CMAKE_OSX_ARCHITECTURES) if (${fwd_var}) file(APPEND "${toolchainFile}" "set(${fwd_var} ${${fwd_var}})\n") endif() endforeach()
in the macro
qtc_auto_setup_compiler_standard
.This way the
CMAKE_MSVC_RUNTIME_LIBRARY
variable will be passed to the toolchain file thatauto-setup.cmake
uses to configure the Conan dependencies. -
Alternatively just download the auto-setup.cmake that will be part of Qt Creator 12.0.2.
-
Hi @cristian-adam, thanks for the kind help!
-