Skip to content

Commit

Permalink
[C++] Account for different variables names on different CMake versio…
Browse files Browse the repository at this point in the history
…ns (#9559)

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

* Cmake 3.5 doesn't support GREATER_EQUAL..
  • Loading branch information
merlimat committed Feb 11, 2021
1 parent 9c39ca0 commit f53d180
Showing 1 changed file with 2 additions and 3 deletions.
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

0 comments on commit f53d180

Please sign in to comment.