support old cmake versions with finding boost
This commit is contained in:
@@ -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})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user