Skip to content

Commit 6e7a00b

Browse files
committed
Updated for use with Boost 1.89.0 and later versions
Boost.System has been a header-only library since 1.69. See https://github.com/boostorg/system/blob/develop/doc/system/changes.adoc#changes-in-boost-169 The stub library was removed in 1.89.0.
1 parent 108bc8b commit 6e7a00b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,11 @@ if(LIBID3TAG_FOUND)
122122
include_directories(${LIBID3TAG_INCLUDE_DIRS})
123123
endif(LIBID3TAG_FOUND)
124124

125-
find_package(Boost 1.46.0 COMPONENTS program_options filesystem regex system REQUIRED)
125+
find_package(Boost 1.46.0 COMPONENTS program_options filesystem regex REQUIRED)
126126
if(Boost_FOUND)
127+
if(Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION LESS 69)
128+
find_package(Boost 1.46.0 COMPONENTS program_options filesystem regex system REQUIRED)
129+
endif()
127130
message(STATUS "Boost_INCLUDE_DIRS='${Boost_INCLUDE_DIRS}'")
128131
message(STATUS "Boost_LIBRARIES='${Boost_LIBRARIES}'")
129132
include_directories(${Boost_INCLUDE_DIRS})

0 commit comments

Comments
 (0)