Commit 38a507e
committed
Fix test build: use PRIVATE include scope and find Unity headers correctly
The test CMakeLists used INTERFACE instead of PRIVATE for
target_include_directories, which meant the Unity include path was
not applied to test_runner itself. Also replaced the incorrect
${UNITY} variable (a library path from find_library) with a proper
find_path call that locates unity.h under the unity/ subdirectory
where Unity's cmake install places it.1 parent 22ac108 commit 38a507e
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
0 commit comments