Commit b3e6b10
authored
Avoid repeated TBB discovery (#32936)
### Details:
The problem is that TBB detection logic in `src/cmake/ov_parallel.cmake`
is being invoked multiple times during configuration if
`-DTHREADING=TBB` or `-DTHREADING=TBB_AUTO` are used. It works correctly
only for `TBB_ADAPTIVE` case.
This patch fixes operator precedence in the check to avoid re-discovery
of TBB on each `ov_find_package_tbb()` and as a result
`ov_set_threading_interface_for()` CMake functions invocations
### Tickets:
- N/A1 parent 275f743 commit b3e6b10
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
| 340 | + | |
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| |||
0 commit comments