File tree 1 file changed +5
-2
lines changed
recipes/azure-sdk-for-cpp/all
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -51,16 +51,18 @@ def validate(self):
51
51
check_min_cppstd (self , 14 )
52
52
53
53
# Open to contributions for windows and apple
54
- if self .settings .os != "Linux" :
54
+ if self .settings .os != "Linux" and self . settings . os != "Macos" :
55
55
raise ConanInvalidConfiguration (
56
56
f"{ self .ref } Conan recipe in ConanCenter still does not support { self .settings .os } , contributions to the recipe welcome." )
57
57
58
- if self .settings .compiler != "gcc" :
58
+ if self .settings .compiler != "gcc" and self . settings . compiler != "clang" and self . settings . compiler != "apple-clang" :
59
59
raise ConanInvalidConfiguration (
60
60
f"{ self .ref } Conan recipe in ConanCenter still does not support { self .settings .compiler } , contributions to the recipe welcome." )
61
61
62
62
if self .settings .compiler == 'gcc' and Version (self .settings .compiler .version ) < "6" :
63
63
raise ConanInvalidConfiguration ("Building requires GCC >= 6" )
64
+ if (self .settings .compiler == 'clang' or self .settings .compiler == "apple-clang" ) and Version (self .settings .compiler .version ) < "10" :
65
+ raise ConanInvalidConfiguration ("Building requires Clang >= 10" )
64
66
65
67
def generate (self ):
66
68
tc = CMakeToolchain (self )
@@ -77,6 +79,7 @@ def generate(self):
77
79
tc .cache_variables ["BUILD_WINDOWS_UWP" ] = "ON"
78
80
tc .cache_variables ["DISABLE_AZURE_CORE_OPENTELEMETRY" ] = "ON"
79
81
tc .cache_variables ["BUILD_TRANSPORT_CURL" ] = "ON"
82
+ tc .cache_variables ["WARNINGS_AS_ERRORS" ] = "OFF"
80
83
tc .generate ()
81
84
82
85
deps = CMakeDeps (self )
You can’t perform that action at this time.
0 commit comments