On 07/06/2021 17:26, Peter Dimov via Boost wrote:
Edward Diener wrote:
Since it is totally legitimate to use Boost.Test in header only mode, and many libraries currently do this, it is hardly a "waste of time" to support this under CMake. Under CMake you can't use header-only libraries without linking to their targets. So there's no real benefit from having a separate header-only target to link to; you can just link to the ordinary target Boost::unit_test_framework.
Doesn't that a) cause the unit test lib to be build when it doesn't need to be, and b) add the resulting binary to library link list when it doesn't need to be? But I do appreciate the simplicity of a single target ;) John. -- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus