Skip to content

Conversation

fultoncjb
Copy link
Contributor

Some organizations, particularly ones with strict threading models, may want to disable coroutines from the build, even if a sufficient Boost version is present on their system. This PR just exposes a new DISABLE_COROUTINES CMake option so that the user may forcefully disable them.

@facontidavide
Copy link
Collaborator

will accept if you set the option On by default

@fultoncjb
Copy link
Contributor Author

@facontidavide the default is OFF because the variable is in charge of disabling the coroutines (i.e. ON would mean the coroutines would be disabled). Would you like me to swap the flag convention so that it enables coroutines?

@facontidavide
Copy link
Collaborator

Yes, don't like double negations ;)

@fultoncjb
Copy link
Contributor Author

@facontidavide fair enough. Original PR was a bit lazy to use most of the existing CMakeLists.txt layout. I have updated the convention.

@fultoncjb fultoncjb changed the title Add DISABLE_COROUTINES CMake option Add ENABLE_COROUTINES CMake option Jan 24, 2022
@facontidavide facontidavide merged commit deb403b into BehaviorTree:master Jan 24, 2022
@facontidavide
Copy link
Collaborator

Thanks a lot

@facontidavide
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants