-
Notifications
You must be signed in to change notification settings - Fork 165
CMake: Fix build with Boost 1.89.0 #199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -173,13 +173,17 @@ else() | |
| set(INNOEXTRACT_HAVE_LZMA 0) | ||
| endif() | ||
|
|
||
| find_package(Boost REQUIRED COMPONENTS | ||
| set(BOOST_REQUIRED_COMPONENTS | ||
| iostreams | ||
| filesystem | ||
| date_time | ||
| system | ||
| program_options | ||
| ) | ||
| find_package(Boost REQUIRED COMPONENTS ${BOOST_REQUIRED_COMPONENTS}) | ||
| if(Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION LESS 69) | ||
| list(APPEND BOOST_REQUIRED_COMPONENTS system) | ||
| find_package(Boost REQUIRED COMPONENTS ${BOOST_REQUIRED_COMPONENTS}) | ||
| endif() | ||
|
Comment on lines
+182
to
+186
This comment was marked as resolved.
Sorry, something went wrong.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, ok. Doesn't knew that. :) |
||
| list(APPEND LIBRARIES ${Boost_LIBRARIES}) | ||
| link_directories(${Boost_LIBRARY_DIRS}) | ||
| include_directories(SYSTEM ${Boost_INCLUDE_DIR}) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
systemmodule/library is a stub since 1.69 according to the PR description, so this is correct