Older Boost version need log_setup in addition to log.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
1.75.0 works without it, 1.74.0 not. Removed -DBOOST_LOG_DYN_LINK again.
This commit is contained in:
parent
1d02c3bd6d
commit
c30a8b40be
|
@ -24,7 +24,8 @@ include(cmake/debug_flags.cmake)
|
||||||
|
|
||||||
# All dependencies except test dependencies.
|
# All dependencies except test dependencies.
|
||||||
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE)
|
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(Gettext REQUIRED)
|
||||||
find_package(Filesystem REQUIRED COMPONENTS Final Experimental)
|
find_package(Filesystem REQUIRED COMPONENTS Final Experimental)
|
||||||
find_package(LibArchive 3.2 REQUIRED)
|
find_package(LibArchive 3.2 REQUIRED)
|
||||||
|
|
|
@ -15,14 +15,11 @@ target_sources(${PROJECT_NAME}_lib
|
||||||
unset(sources_src)
|
unset(sources_src)
|
||||||
unset(headers_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
|
target_link_libraries(${PROJECT_NAME}_lib
|
||||||
PUBLIC
|
PUBLIC
|
||||||
Boost::dynamic_linking
|
Boost::dynamic_linking
|
||||||
Boost::locale
|
Boost::locale
|
||||||
|
Boost::log_setup
|
||||||
Boost::log
|
Boost::log
|
||||||
Boost::program_options
|
Boost::program_options
|
||||||
Boost::regex
|
Boost::regex
|
||||||
|
|
Loading…
Reference in New Issue
Block a user