Commit 309cd70
committed
fix(opencv-test): guard on __linux__, drop build-phase define (gui-stack pattern)
The member BUILD phase (mcpp test --workspace runs build+test per member)
compiled tests/roundtrip.cpp with -DHAVE_OPENCV from [target.cfg(linux).build]
cxxflags but WITHOUT the cfg(linux) opencv dep's include path -> opencv2/core.hpp
not found. Match the gui-stack precedent: guard the test on the builtin __linux__
and drop the custom define + [target.build] section, so the build phase is a
clean no-op and the test phase compiles with the dep includes.
Verified from a clean state (fresh toolchain + fresh opencv source build,
released mcpp 0.0.87): mcpp build RC=0, mcpp test roundtrip ok.1 parent 8b860e9 commit 309cd70
2 files changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments