This is an automated email from the ASF dual-hosted git repository.
pengzheng pushed a commit to branch hotfix/conan-private-dep
in repository https://gitbox.apache.org/repos/asf/celix.git
The following commit(s) were added to refs/heads/hotfix/conan-private-dep by
this push:
new 6f147b8b Fix copy error in generate method.
6f147b8b is described below
commit 6f147b8b26c474544238a8e8a8f52fc7fb279bcb
Author: PengZheng <[email protected]>
AuthorDate: Wed Mar 6 19:11:29 2024 +0800
Fix copy error in generate method.
---
conanfile.py | 3 ++-
examples/conan_test_package_v2/conanfile.py | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/conanfile.py b/conanfile.py
index 79db0fb3..e1b8003b 100644
--- a/conanfile.py
+++ b/conanfile.py
@@ -345,7 +345,8 @@ class CelixConan(ConanFile):
# tc.cache_variables["CMAKE_PROJECT_Celix_INCLUDE"] =
os.path.join(self.build_folder, "conan_paths.cmake")
# the following is workaround for
https://github.com/conan-io/conan/issues/7192
for dep in self.dependencies.host.values():
- copy(self, "*", dep.cpp_info.libdir,
os.path.join(self.build_folder, "lib"))
+ copy(self, "*.dylib", dep.cpp_info.libdir,
os.path.join(self.build_folder, "lib"))
+ copy(self, "*.so*", dep.cpp_info.libdir,
os.path.join(self.build_folder, "lib"))
tc.cache_variables["CMAKE_BUILD_RPATH"] =
os.path.join(self.build_folder, "lib")
v = Version(self.version)
tc.cache_variables["CELIX_MAJOR"] = str(v.major.value)
diff --git a/examples/conan_test_package_v2/conanfile.py
b/examples/conan_test_package_v2/conanfile.py
index d64d38b9..3906d3f0 100644
--- a/examples/conan_test_package_v2/conanfile.py
+++ b/examples/conan_test_package_v2/conanfile.py
@@ -67,7 +67,8 @@ class TestPackageConan(ConanFile):
tc.cache_variables["TEST_COMPONENTS_READY_CHECK"] =
celix_options.build_components_ready_check
# the following is workaround
https://github.com/conan-io/conan/issues/7192
for dep in self.dependencies.host.values():
- copy(self, "*", dep.cpp_info.libdir,
os.path.join(self.build_folder, "lib"))
+ copy(self, "*.dylib", dep.cpp_info.libdir,
os.path.join(self.build_folder, "lib"))
+ copy(self, "*.so*", dep.cpp_info.libdir,
os.path.join(self.build_folder, "lib"))
tc.cache_variables["CMAKE_BUILD_RPATH"] =
os.path.join(self.build_folder, "lib")
tc.user_presets_path = False
tc.generate()