Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ENABLE_COROUTINES CMake option #316

Merged
merged 2 commits into from
Jan 24, 2022

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.

None yet

2 participants