Commit 0a3f3de
committed
build: depend on all cargo outputs in custom target
The custom target driving the cargo build depended only on LIB_FILE
(the main library), not LIB_OUTPUTS (which also includes the import
library on Windows for cdylib builds). If the import library was
missing or stale but the DLL existed, CMake would consider the target
up-to-date and skip the cargo invocation, causing link failures.
Use LIB_OUTPUTS so the target depends on all expected artifacts.1 parent 11958a4 commit 0a3f3de
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| |||
0 commit comments