Older Boost version need log_setup in addition to log.
continuous-integration/drone/push Build is failing Details

1.75.0 works without it, 1.74.0 not.
Removed -DBOOST_LOG_DYN_LINK again.
This commit is contained in:
tastytea 2021-05-31 20:57:36 +02:00
parent 1d02c3bd6d
commit c30a8b40be
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 3 additions and 5 deletions

View File

@ -24,7 +24,8 @@ include(cmake/debug_flags.cmake)
# All dependencies except test dependencies.
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE)
find_package(Boost 1.65.0 REQUIRED COMPONENTS locale log program_options regex)
find_package(Boost 1.65.0 REQUIRED
COMPONENTS locale log_setup log program_options regex)
find_package(Gettext REQUIRED)
find_package(Filesystem REQUIRED COMPONENTS Final Experimental)
find_package(LibArchive 3.2 REQUIRED)

View File

@ -15,14 +15,11 @@ target_sources(${PROJECT_NAME}_lib
unset(sources_src)
unset(headers_src)
# Older CMake versions apparently need this, but I don't know in which version
# it changed. Theoretically Boost::dynamic_linking should take care of it.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBOOST_LOG_DYN_LINK")
target_link_libraries(${PROJECT_NAME}_lib
PUBLIC
Boost::dynamic_linking
Boost::locale
Boost::log_setup
Boost::log
Boost::program_options
Boost::regex