Skip to content

Commit

Permalink
(#7290) Define boost::system as header-only component
Browse files Browse the repository at this point in the history
Starting v1.69.0 Boost.System is header-only. A stub library is still
built for compatibility, but linking to it is no longer necessary.
https://www.boost.org/doc/libs/1_75_0/libs/system/doc/html/system.html#changes_in_boost_1_69
  • Loading branch information
klimkin authored Sep 18, 2021
1 parent 79bddec commit e5ac6e2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions recipes/boost/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1513,6 +1513,13 @@ def filter_transform_module_libraries(names):
if set(module_libraries).difference(all_detected_libraries):
incomplete_components.append(module)

# Starting v1.69.0 Boost.System is header-only. A stub library is
# still built for compatibility, but linking to it is no longer
# necessary.
# https://www.boost.org/doc/libs/1_75_0/libs/system/doc/html/system.html#changes_in_boost_1_69
if module == "system":
module_libraries = []

self.cpp_info.components[module].libs = module_libraries

self.cpp_info.components[module].requires = self._dependencies["dependencies"][module] + ["_libboost"]
Expand Down

0 comments on commit e5ac6e2

Please sign in to comment.