Open hebasto opened 8 months ago
I could reproduce this issue in my side with the repro steps.
@Cheney-W do we have a workaround for this issue yet?
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.
@Cheney-W do we have a workaround for this issue yet?
Any update?
As a workaround, for me it worked to use a single source file only.
I.e., replace test.cpp
by test.h
, and include test.h
in your main.cpp
.
This way, you avoid to have multiple translation units.
Source code that is independent of unit_test.hpp
can remain in separate cpp
-files.
Describe the bug
Linker fails when using the
boost-test
in the "Header-only with multiple translation units" scenario onx64-windows
.Environment
To Reproduce
The
CMakeLists.txt
file:The
vcpkg.json
file:Run in Developer Command Prompt:
Failure log