Opened 13 years ago
Closed 13 years ago
#3676 closed Bugs (fixed)
Jamfile filesystem lib
Reported by: | Owned by: | Beman Dawes | |
---|---|---|---|
Milestone: | Boost 1.42.0 | Component: | filesystem |
Version: | Boost 1.41.0 | Severity: | Problem |
Keywords: | Cc: | miczer@… |
Description
Hi.
Filesystem library depends on system library, so that it would be great if Jamfile for filesystem contains usage-requirement that point to the system library so that it is automatically taken into consideration during linking shared libraries (of course when using boost.build for the own project)
Now if one wants to use filesystem library (in case of linking to shared library) one need to link explicitly also system library.
If system library is added to usage-requirements (of project or target) in filesystem Jamfile, then one only need to point filesystem as direct dependency and system library will be linked automaticaly based on usage-requirements.
It also will cause that install-dependencies feature will work correctly and when install-dependencies is on then it will atomatically install system library for filesystem library users (dependants).
I attached two versions of changed Jamfile. One with usage-requirement added to project and one with usage-requirements added to target. Both are good enough and both works.
Best Regards. Michal.
Attachments (3)
Change History (4)
by , 13 years ago
Attachment: | Jamfile_project.v2 added |
---|
by , 13 years ago
Attachment: | Jamfile_target.v2 added |
---|
by , 13 years ago
Attachment: | Jamfile_target.2.v2 added |
---|
comment:1 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I believe this was fixed in 1.42, albeit with a slightly different patch. Here's what the current Filesystem Jamfile has to say: