From 79f85790a876969a34d80930d68fc03c9aa06766 Mon Sep 17 00:00:00 2001 From: trns1997 Date: Sat, 20 Apr 2024 09:24:31 +0200 Subject: [PATCH] add suggestions --- recipes/azure-sdk-for-cpp/all/conanfile.py | 8 ++++---- recipes/azure-sdk-for-cpp/all/test_package/CMakeLists.txt | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/recipes/azure-sdk-for-cpp/all/conanfile.py b/recipes/azure-sdk-for-cpp/all/conanfile.py index 78f21a48e21975..7ad9a138de23e4 100644 --- a/recipes/azure-sdk-for-cpp/all/conanfile.py +++ b/recipes/azure-sdk-for-cpp/all/conanfile.py @@ -6,8 +6,7 @@ from conan.tools.scm import Version import os -required_conan_version = ">=1.53.0" - +required_conan_version = ">=2.0.5" class AzureSDKForCppConan(ConanFile): name = "azure-sdk-for-cpp" @@ -45,8 +44,8 @@ def configure(self): self.options.rm_safe("fPIC") def requirements(self): - self.requires("libcurl/8.6.0") - self.requires("libxml2/2.12.6") + self.requires("libcurl/[>=7.78 <9]") + self.requires("libxml2/[>=2.12.5 <3]") def layout(self): cmake_layout(self, src_folder="src") @@ -55,6 +54,7 @@ def validate(self): if self.settings.compiler.get_safe("cppstd"): check_min_cppstd(self, 14) + # Open to contributions for windows and apple if self.settings.os != "Linux": raise ConanInvalidConfiguration( f"{self.ref} is not supported on {self.settings.os}.") diff --git a/recipes/azure-sdk-for-cpp/all/test_package/CMakeLists.txt b/recipes/azure-sdk-for-cpp/all/test_package/CMakeLists.txt index d7d143f379c941..a00ff1a7887623 100644 --- a/recipes/azure-sdk-for-cpp/all/test_package/CMakeLists.txt +++ b/recipes/azure-sdk-for-cpp/all/test_package/CMakeLists.txt @@ -1,7 +1,6 @@ cmake_minimum_required(VERSION 3.8) -project(test_package LANGUAGES CXX) -set(CMAKE_CXX_STANDARD 17) +project(test_package LANGUAGES CXX) find_package(AzureSDK CONFIG REQUIRED)