Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 9.0.2, Qt Creator 10.0.0-beta2
-
None
-
4d82246ab (10.0)
Description
I updated Conan to version 2.0 and the syntax to use it seems to be a bit different. I get the following error when running CMake (including package auto setup) through Qt Creator:
-- Conan: Automatic detection of conan settings from cmake -- Conan: Settings= -s;build_type=Debug;-s;compiler=apple-clang;-s;compiler.version=14.0;-s;compiler.libcxx=libc++ -- Conan: checking conan executable -- Conan: Found program /opt/homebrew/bin/conan -- Conan: Version found Conan version 2.0.0 -- Conan executing: /opt/homebrew/bin/conan install /Users/jdierckx/work/WIcreations/VisualActQt/conanfile.txt -s build_type=Debug -s compiler=apple-clang -s compiler.version=14.0 -s compiler.libcxx=libc++ -e=CONAN_CMAKE_TOOLCHAIN_FILE="/Users/jdierckx/work/WIcreations/build-VisualActQt-Qt_6_4_2_for_macOS-Debug/conan-dependencies/toolchain.cmake" -g=cmake_paths -g=json -g=cmake --build=missing -if=/Users/jdierckx/work/WIcreations/build-VisualActQt-Qt_6_4_2_for_macOS-Debug/conan-dependencies usage: conan install [-h] [-f FORMAT] [-v [V]] [--logger] [--name NAME] [--version VERSION] [--user USER] [--channel CHANNEL] [--requires REQUIRES] [--tool-requires TOOL_REQUIRES] [-b BUILD] [-r REMOTE | -nr] [-u] [-o OPTIONS_HOST] [-o:b OPTIONS_BUILD] [-o:h OPTIONS_HOST] [-pr PROFILE_HOST] [-pr:b PROFILE_BUILD] [-pr:h PROFILE_HOST] [-s SETTINGS_HOST] [-s:b SETTINGS_BUILD] [-s:h SETTINGS_HOST] [-c CONF_HOST] [-c:b CONF_BUILD] [-c:h CONF_HOST] [-l LOCKFILE] [--lockfile-partial] [--lockfile-out LOCKFILE_OUT] [--lockfile-packages] [--lockfile-clean] [-g GENERATOR] [-of OUTPUT_FOLDER] [--deploy DEPLOY] [path] conan install: error: unrecognized arguments: -e=CONAN_CMAKE_TOOLCHAIN_FILE="/Users/jdierckx/work/WIcreations/build-VisualActQt-Qt_6_4_2_for_macOS-Debug/conan-dependencies/toolchain.cmake" -if=/Users/jdierckx/work/WIcreations/build-VisualActQt-Qt_6_4_2_for_macOS-Debug/conan-dependencies ERROR: Exiting with code: 2 CMake Error at /Users/jdierckx/Qt/Qt Creator.app/Contents/Resources/package-manager/conan.cmake:540 (message): Conan install failed='2' Call Stack (most recent call first): /Users/jdierckx/Qt/Qt Creator.app/Contents/Resources/package-manager/conan.cmake:882 (old_conan_cmake_install) CMakeLists.txt:5 (conan_cmake_run) -- Configuring incomplete, errors occurred! See also "/Users/jdierckx/work/WIcreations/build-VisualActQt-Qt_6_4_2_for_macOS-Debug/conan-dependencies/build/CMakeFiles/CMakeOutput.log". CMake Warning at /Users/jdierckx/Qt/Qt Creator.app/Contents/Resources/package-manager/auto-setup.cmake:124 (message): Qt Creator's conan package manager auto-setup failed. Consider setting QT_CREATOR_SKIP_CONAN_SETUP to ON and reconfigure to skip this step. Call Stack (most recent call first): /Users/jdierckx/Qt/Qt Creator.app/Contents/Resources/package-manager/auto-setup.cmake:134 (qtc_auto_setup_conan) CMakeLists.txt:3 (project)