Skip to content

Commit 6f04041

Browse files
committed
boost: make sure libdirs is empty with header-only=True and used via boost::boost target
1 parent a80eba1 commit 6f04041

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

recipes/boost/all/conanfile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,8 @@ def package_info(self):
14911491
self.cpp_info.components["_boost_cmake"].set_property("cmake_target_name", "Boost::boost")
14921492
self.cpp_info.components["_boost_cmake"].names["cmake_find_package"] = "boost"
14931493
self.cpp_info.components["_boost_cmake"].names["cmake_find_package_multi"] = "boost"
1494+
if self.options.header_only:
1495+
self.cpp_info.components["_boost_cmake"].libdirs = []
14941496

14951497
if not self.options.header_only:
14961498
self.cpp_info.components["_libboost"].requires = ["headers"]

0 commit comments

Comments
 (0)