File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -132,10 +132,12 @@ def setup(self):
132
132
# Prefer static libraries for 3rd-party dependencies
133
133
self .add_cmake_options (BUILD_SHARED_LIBS = False )
134
134
self .add_cmake_options (CMAKE_USE_SYSTEM_LIBRARY_LIBUV = True )
135
- # CMake can't find the static libuv due to a different libname
136
- self .add_cmake_options (
137
- LibUV_LIBRARY = BuildLibuv .get_install_dir (self ) / self .target_info .default_libdir / "libuv_a.a"
138
- )
135
+ if not (BuildLibuv .get_install_dir (self ) / self .target_info .default_libdir / "libuv.a" ).exists ():
136
+ # CMake can't find the static libuv due to a different libname which is installed as libuv_a.a
137
+ # for some older versions of libuv.
138
+ self .add_cmake_options (
139
+ LibUV_LIBRARY = BuildLibuv .get_install_dir (self ) / self .target_info .default_libdir / "libuv_a.a"
140
+ )
139
141
140
142
def run_tests (self ):
141
143
# TODO: generate JUnit output once https://gitlab.kitware.com/cmake/cmake/-/merge_requests/6020 is merged
You can’t perform that action at this time.
0 commit comments