Skip to content

Commit

Permalink
Fix _exact_lib_name on non-Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahajha committed Apr 6, 2024
1 parent 5ac5a41 commit defcf60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipes/cpython/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ def _msvc_package_copy(self):

@property
def _exact_lib_name(self):
prefix = "" if self.settings.os == "Windows" else "lib"
if self.settings.os == "Windows":
extension = "lib"
elif not self.options.shared:
Expand All @@ -522,7 +523,7 @@ def _exact_lib_name(self):
extension = "dylib"
else:
extension = "so"
return f"{self._lib_name}.{extension}"
return f"{prefix}{self._lib_name}.{extension}"

@property
def _cmake_module_path(self):
Expand Down

0 comments on commit defcf60

Please sign in to comment.