test icon indicating copy to clipboard operation
test copied to clipboard

build this library in tree using cmake fetchcontent

Open Char-Aznable opened this issue 5 years ago • 2 comments

Hi, I see there is a CMakeLists.txt in this repo and I have heard an on-going effort in the Boost community to modularize the individual boost packages. What is the current status of building boost::unit_test_framework in cmake as an independent package from the rest of boost? My use case is using cmake fetchcontent from this github to include this library into the build tree of different projects, some use header only part and some use dynamic-linked library. Is this possible now with cmake?

Char-Aznable avatar Jun 20 '20 03:06 Char-Aznable

I've been busy in 2020 trying to get rid of the rest of Boost to compile Boost.Test, but this is very hard and messing bad with the code. As I understand the ticket, you're fine in having just Boost.Test with CMake's ability to fetch the needed additional dependencies. Is that correct?

If so, I believe I can work on this.

raffienficiaud avatar Mar 05 '22 22:03 raffienficiaud

As I understand the ticket, you're fine in having just Boost.Test with CMake's ability to fetch the needed additional dependencies. Is that correct?

Actually no. What I wanted is to have Boost.Test to be built in-tree with my project using CMake's fetchcontent, i.e., cmake fetch this github repo during config time and build Boost.Test as my project's dependency. I don't need other components of Boost.

Thanks for looking into this!

Char-Aznable avatar Mar 05 '22 22:03 Char-Aznable