Skip to content
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

[C++] Account for different variables names on different CMake versions #9559

Merged
merged 2 commits into from
Feb 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions pulsar-client-cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,10 @@ endif (LINK_STATIC)

find_package(Boost)

if (NOT Boost_VERSION_MAJOR OR
(Boost_VERSION_MAJOR EQUAL 1 AND Boost_VERSION_MINOR LESS 69)
)
if (Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION LESS 69)
# Boost System does not require linking since 1.69
set(BOOST_COMPONENTS ${BOOST_COMPONENTS} system)
MESSAGE(STATUS "Linking with Boost:System")
endif()

if (MSVC)
Expand Down