Skip to content

cmake: Stop requiring Boost.System as a compiled component - #217

Open
wvangeit wants to merge 2 commits into
snl-dakota:develfrom
wvangeit:boost_headeronly
Open

cmake: Stop requiring Boost.System as a compiled component#217
wvangeit wants to merge 2 commits into
snl-dakota:develfrom
wvangeit:boost_headeronly

Conversation

@wvangeit

Copy link
Copy Markdown

Boost.System has been header-only since Boost 1.69, and Dakota requires >= 1.70. Some package managers (e.g. Homebrew >= 1.87) no longer ship a separate libboost_system library, causing find_package(Boost COMPONENTS system) to fail.

Remove system from the required COMPONENTS list and create a Boost::system INTERFACE IMPORTED target as a fallback when the package manager does not provide one. This keeps existing target_link_libraries(... Boost::system) calls working on all platforms.

Boost.System has been header-only since Boost 1.69, and Dakota
requires >= 1.70.  Some package managers (e.g. Homebrew >= 1.87)
no longer ship a separate libboost_system library, causing
find_package(Boost COMPONENTS system) to fail.

Remove system from the required COMPONENTS list and create a
Boost::system INTERFACE IMPORTED target as a fallback when the
package manager does not provide one.  This keeps existing
target_link_libraries(... Boost::system) calls working on all
platforms.
@wvangeit

Copy link
Copy Markdown
Author

@rhoope @jadamstephens You think this would ever be merged / or implemented? Or should i close the PR? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant