1
1
from conan import ConanFile
2
2
from conan .errors import ConanInvalidConfiguration
3
- from conan .tools .files import apply_conandata_patches , export_conandata_patches , get , copy , replace_in_file
3
+ from conan .tools .files import apply_conandata_patches , export_conandata_patches , get , copy , replace_in_file , rm
4
4
from conan .tools .cmake import CMake , CMakeDeps , CMakeToolchain , cmake_layout
5
5
from conan .tools .build import check_min_cppstd
6
6
import os
@@ -57,19 +57,19 @@ def layout(self):
57
57
cmake_layout (self , src_folder = "src" )
58
58
59
59
def requirements (self ):
60
- self .requires ("libuv/1.44.2" , transitive_headers = True )
60
+ self .requires ("libuv/1.44.2" )
61
61
self .requires ("http_parser/2.9.4" )
62
62
self .requires ("rapidjson/cci.20220822" )
63
63
64
64
if self .options .with_openssl :
65
- self .requires ("openssl/1.1.1s " )
65
+ self .requires ("openssl/1.1.1t " )
66
66
67
67
if self .options .with_zlib :
68
68
self .requires ("minizip/1.2.13" )
69
69
self .requires ("zlib/1.2.13" )
70
70
71
71
if self .options .use_atomic == "boost" :
72
- self .requires ("boost/1.80 .0" )
72
+ self .requires ("boost/1.81 .0" )
73
73
74
74
def validate (self ):
75
75
if self .info .settings .compiler .cppstd :
@@ -86,7 +86,7 @@ def validate(self):
86
86
"Kerberos is not supported at the moment" )
87
87
88
88
def source (self ):
89
- get (self , ** self .conan_data ["sources" ][self .version ], destination = self . source_folder , strip_root = True )
89
+ get (self , ** self .conan_data ["sources" ][self .version ], strip_root = True )
90
90
91
91
def generate (self ):
92
92
tc = CMakeToolchain (self )
@@ -132,6 +132,9 @@ def _patch_sources(self):
132
132
replace_in_file (self , os .path .join (self .source_folder , "CMakeLists.txt" ),
133
133
"\" ${CMAKE_CXX_COMPILER_ID}\" STREQUAL \" Clang\" " ,
134
134
"\" ${CMAKE_CXX_COMPILER_ID}\" STREQUAL \" Clang\" OR \" ${CMAKE_CXX_COMPILER_ID}\" STREQUAL \" AppleClang\" " )
135
+ rm (self , "Findlibssh2.cmake" , os .path .join (self .source_folder , "cmake" ))
136
+ rm (self , "Findlibuv.cmake" , os .path .join (self .source_folder , "cmake" ))
137
+ rm (self , "FindOpenSSL.cmake" , os .path .join (self .source_folder , "cmake" ))
135
138
136
139
def build (self ):
137
140
self ._patch_sources ()
0 commit comments