Skip to content

Commit

Permalink
Fix assertion failure when dep.cpp_info.libdir is None.
Browse files Browse the repository at this point in the history
  • Loading branch information
PengZheng committed Mar 6, 2024
1 parent 4d831cc commit fdf96fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def generate(self):
# 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():
if dep.cpp_info.libdir is not None:
if dep.cpp_info.libdirs:
copy(self, "*", 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)
Expand Down
2 changes: 1 addition & 1 deletion examples/conan_test_package_v2/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def generate(self):
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():
if dep.cpp_info.libdir is not None:
if dep.cpp_info.libdirs:
copy(self, "*", 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
Expand Down

0 comments on commit fdf96fd

Please sign in to comment.