Commit 768ae51
Fix intermittent build failure on examples (#9059)
Fixes #9037
This commit removes CONFIGURE_DEPENDS from CMakeLists.txt for examples.
This is to prevent intermittent build failures on Windows.
Root cause: All examples share the same
`examples/CMakeFiles/generate.stamp` file.
When building in parallel, multiple targets trigger simultaneous CMake
regenerations,
causing a race condition on the shared stamp file (~10% failure rate).
An alternative solution is to add CMakeFiles.txt for each and every
examples.
This will allow the build to run concurrently with their own
`generate.stamp` file.
But it may add unnecessary maintained cost when we need to add new
examples.
See: https://gitlab.kitware.com/cmake/cmake/-/issues/21571
---------
Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>1 parent d90d869 commit 768ae51
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
6 | 18 | | |
7 | 19 | | |
8 | | - | |
| 20 | + | |
9 | 21 | | |
10 | 22 | | |
11 | 23 | | |
| |||
0 commit comments