Skip to content

Commit 40b5cc9

Browse files
fultoncjbCam Fulton
andauthored
Fix CMake ENABLE_COROUTINES flag with Boost < 1.59 (#335)
Co-authored-by: Cam Fulton <[email protected]>
1 parent deb403b commit 40b5cc9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ if(ENABLE_COROUTINES)
4848
endif()
4949
else()
5050
message(STATUS "Boost coroutines disabled by CMake option.")
51+
endif()
52+
53+
if(NOT DEFINED BT_COROUTINES)
5154
add_definitions(-DBT_NO_COROUTINES)
5255
endif()
5356

0 commit comments

Comments
 (0)