support old cmake versions with finding boost

This commit is contained in:
2025-03-22 01:38:14 +03:00
parent a342d78df7
commit b19c92079d
3 changed files with 28 additions and 3 deletions

View File

@@ -216,7 +216,11 @@ endif()
target_link_libraries(checks-parser PRIVATE -lcurl)
find_package(Boost 1.45.0 CONFIG REQUIRED COMPONENTS regex)
if (CMAKE_VERSION VERSION_LESS 3.30)
find_package(Boost 1.45.0 REQUIRED COMPONENTS regex)
else()
find_package(Boost 1.45.0 CONFIG REQUIRED COMPONENTS regex)
endif()
include_directories(${Boost_INCLUDE_DIRS})
target_link_libraries(checks-parser PUBLIC ${Boost_LIBRARIES})