forked from qt-creator/qt-creator
CMakePM: Fix conan default profile auto-detection
CONAN_COMMAND was not available for `conan_profile_detect_default` function. Change-Id: I03df06aa88e6588101bb5ec54b3ce2cb64dee2c8 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -102,11 +102,11 @@ macro(qtc_auto_setup_conan)
|
|||||||
project(conan-setup)
|
project(conan-setup)
|
||||||
|
|
||||||
if (${conan_version} VERSION_GREATER_EQUAL 2.0)
|
if (${conan_version} VERSION_GREATER_EQUAL 2.0)
|
||||||
|
set(CONAN_COMMAND \"${conan_program}\")
|
||||||
include(\"${CMAKE_CURRENT_LIST_DIR}/conan_provider.cmake\")
|
include(\"${CMAKE_CURRENT_LIST_DIR}/conan_provider.cmake\")
|
||||||
conan_profile_detect_default()
|
conan_profile_detect_default()
|
||||||
detect_host_profile(\"${CMAKE_BINARY_DIR}/conan-dependencies/conan_host_profile\")
|
detect_host_profile(\"${CMAKE_BINARY_DIR}/conan-dependencies/conan_host_profile\")
|
||||||
|
|
||||||
set(CONAN_COMMAND \"${conan_program}\")
|
|
||||||
conan_install(
|
conan_install(
|
||||||
-pr \"${CMAKE_BINARY_DIR}/conan-dependencies/conan_host_profile\"
|
-pr \"${CMAKE_BINARY_DIR}/conan-dependencies/conan_host_profile\"
|
||||||
--build=${QT_CREATOR_CONAN_BUILD_POLICY}
|
--build=${QT_CREATOR_CONAN_BUILD_POLICY}
|
||||||
|
Reference in New Issue
Block a user