Skip to content

Commit d5f3314

Browse files
Franco Guiditobifalk
Franco Guidi
authored andcommitted
vendor/open-simulation-interface: Add full_package_mode
Set full_package_mode for Protobuf to consider the case that a consumer recipe might set Protobuf as a shared or static library. How to reproduce issue: - Set the following options in your consumer: 'self.options['open-simulation-interface'].shared = True' and 'self.options['protobuf'].shared = True' - Then upload the packages to artifactory. - Now change `self.options['protobuf'].shared = False` in your consumer package. - Try to compile again. Assuming that your Conan configuration has as default `default_package_id_mode = semver_direct_mode' then the first version of OSI produced which links to a Protobuf as shared library is installed in your Conan cache.
1 parent 29eed02 commit d5f3314

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vendor/open-simulation-interface/conanfile.py

+3
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ def package(self):
7979
else:
8080
files.rmdir(self, os.path.join(self.package_folder, "lib", "cmake"))
8181

82+
def package_id(self):
83+
self.info.requires["protobuf"].full_package_mode()
84+
8285
def package_info(self):
8386
self.cpp_info.set_property("cmake_file_name", "open_simulation_interface")
8487
self.cpp_info.set_property("cmake_target_name", "open_simulation_interface::open_simulation_interface")

0 commit comments

Comments
 (0)