From 9f8c5b42b46d5d0368eb026d4164280c4e714766 Mon Sep 17 00:00:00 2001 From: JackCarterSmith Date: Thu, 26 Sep 2024 21:30:39 +0200 Subject: [PATCH] Fix on conan script --- conanfile.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/conanfile.py b/conanfile.py index bc5d5d5..4a3cff3 100644 --- a/conanfile.py +++ b/conanfile.py @@ -1,6 +1,7 @@ from conan import ConanFile from conan.tools.cmake import CMakeToolchain#,cmake_layout from conan.tools.files import copy +import os required_conan_version = ">=1.59" @@ -43,8 +44,11 @@ class ProtoTank(ConanFile): #tc.user_presets_path = False tc.generate() for dep in self.dependencies.values(): - if self.settings.os == "Windows" and len(dep.cpp_info.bindirs) > 0: - copy(self, "*.dll", dep.cpp_info.bindirs[0], self.build_folder + "/bin") + if len(dep.cpp_info.bindirs) > 0: + if self.settings.os == "Windows": + copy(self, "*.dll", dep.cpp_info.bindirs[0], os.path.join(self.build_folder, "bin")) + else: + copy(self, "*.so", dep.cpp_info.bindirs[0], os.path.join(self.build_folder, "bin")) # def package(self): # copy(self, "LICENSE", src=self.source_folder, dst=os.path.join(self.package_folder, "licenses"))