Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Coroutines not building on Ubuntu 20.04 Focal #196

Closed
@doisyg

Description

@doisyg

Hi Davide,
Maybe I am the only one using coroutines... but, when building from src on Ubuntu 20.04, the coroutines are not built.
I think it is due to the way Boost_VERSION is recognized there:

find_package(Boost COMPONENTS coroutine QUIET)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
if(NOT Boost_VERSION VERSION_LESS 105900)
message(STATUS "Found boost::coroutine2.")
add_definitions(-DBT_BOOST_COROUTINE2)
set(BT_COROUTINES true)
elseif(NOT Boost_VERSION VERSION_LESS 105300)
message(STATUS "Found boost::coroutine.")
include_directories(${Boost_INCLUDE_DIRS})
add_definitions(-DBT_BOOST_COROUTINE)
set(BT_COROUTINES true)
endif()
endif()

if I add message(STATUS "BOOST version: " ${Boost_VERSION}), I get 106501 in ubuntu 18.04 and 1.71.0 in ubuntu 20.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions