Skip to content

Commit 3ef8425

Browse files
aobolenskmryzhov
andauthored
Enable job pools for Ninja Multi-Config generators (#33415)
### Details: Scale job pool changes on “Ninja Multi-Config” cmake generator along with “Ninja” Small fix after #33089 ### Tickets: - N/A --------- Co-authored-by: Mikhail Ryzhov <mikhail.ryzhov@intel.com>
1 parent 4eadb95 commit 3ef8425

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ endfunction()
146146
#
147147

148148
# Configure job pools (only for Ninja generators)
149-
if(CMAKE_GENERATOR MATCHES "Ninja")
149+
if(CMAKE_GENERATOR STREQUAL "Ninja" OR CMAKE_GENERATOR STREQUAL "Ninja Multi-Config")
150150
# Because we use Ninja generator, we can set the number of parallel
151151
# jobs separately for different tasks, like compiling and linking.
152152
# Especially useful on Windows, we avoid to be out of memory during linking stage that way.

0 commit comments

Comments
 (0)