Skip to content

Commit 877d68b

Browse files
committed
Disable coroutines with boost v1.72
1 parent dbfa778 commit 877d68b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,12 @@ if(BOOST_VERSION_OK)
152152
add_test("t-20-promise" t-20-promise)
153153
endif()
154154

155-
add_executable(t-21-coroutine t/21-coroutine.cpp)
156-
target_link_libraries(t-21-coroutine ${LINK_DEPENDENCIES})
157-
add_test("t-21-coroutine" t-21-coroutine)
155+
# seems boost is periodically broken. Please, send a fixing PR if u know how
156+
if ((Boost_MAJOR_VERSION GREATER_EQUAL 1) AND (Boost_MINOR_VERSION GREATER_EQUAL 74))
157+
add_executable(t-21-coroutine t/21-coroutine.cpp)
158+
target_link_libraries(t-21-coroutine ${LINK_DEPENDENCIES})
159+
add_test("t-21-coroutine" t-21-coroutine)
160+
endif()
158161

159162
add_executable(t-22-ping_drop-policy t/22-ping_drop-policy.cpp)
160163
target_link_libraries(t-22-ping_drop-policy ${LINK_DEPENDENCIES})

0 commit comments

Comments
 (0)