Add workaround for old CMake←→Boost combinations.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
f184a19832
commit
1d02c3bd6d
|
@ -15,6 +15,10 @@ 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
|
||||||
|
|
Loading…
Reference in New Issue