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

Boost 1.74 compatibility + Conan updates #25

Merged
merged 3 commits into from
Jan 18, 2021
Merged

Conversation

JonasProgrammer
Copy link
Contributor

@JonasProgrammer JonasProgrammer commented Jan 17, 2021

Hi,

this PR includes two changes: The first is rather small, I added BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT (see yandex/ozo#266) to the defines of the generated CMake package helper for the time being, so consumers of the library don't have to do it on their end. The async/coro.cpp example fails under 1.74 without this, for example.

Other than that, I updated the conan package, so it can be consumed with the cmake_find_package generator. Conan does not allow any find helper CMake files into conan-center, so in order to stay comaptible with that, the defines/dependencies using target_link_libraries and target_compile_definitions need to be replicated in the conanfile. I updated the test package to check for compatibility accordingly.

This should not change anything for users of the current conanfile, as the generated CMake helpers are still included in here and will work with the conan_paths generator.

Cheers

- define BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT
- switch to boost from new conan center index
- run test package against cmake_find_package generator to ensure compatibility with conan-center
- use proper compiler version setting
- use coro example in test_package to test for BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT setting
- add proper component dependencies
@elsid
Copy link
Owner

elsid commented Jan 18, 2021

Thanks!

@elsid elsid merged commit 3beb22f into elsid:master Jan 18, 2021
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