From 877d68bbe9725e6d996eb76390a73b10b74d193a Mon Sep 17 00:00:00 2001 From: Ivan Baidakou Date: Fri, 4 Sep 2020 21:07:07 +0300 Subject: [PATCH] Disable coroutines with boost v1.72 --- CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c44e9f59..067f76bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -152,9 +152,12 @@ if(BOOST_VERSION_OK) add_test("t-20-promise" t-20-promise) endif() -add_executable(t-21-coroutine t/21-coroutine.cpp) -target_link_libraries(t-21-coroutine ${LINK_DEPENDENCIES}) -add_test("t-21-coroutine" t-21-coroutine) +# seems boost is periodically broken. Please, send a fixing PR if u know how +if ((Boost_MAJOR_VERSION GREATER_EQUAL 1) AND (Boost_MINOR_VERSION GREATER_EQUAL 74)) + add_executable(t-21-coroutine t/21-coroutine.cpp) + target_link_libraries(t-21-coroutine ${LINK_DEPENDENCIES}) + add_test("t-21-coroutine" t-21-coroutine) +endif() add_executable(t-22-ping_drop-policy t/22-ping_drop-policy.cpp) target_link_libraries(t-22-ping_drop-policy ${LINK_DEPENDENCIES})