You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CMakeLists.txt
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -110,10 +110,15 @@ endif()
110
110
option(_NBL_MEMORY_CONSUMPTION_CHECK_SKIP_"Turn it ON to bypass memory consumption test given _NBL_JOBS_AMOUNT_. Be aware you are doing it on your own risk of potential build failures!"OFF)
111
111
112
112
include(ProcessorCount)
113
+
113
114
if(NOTDEFINED_NBL_JOBS_AMOUNT_)
114
-
ProcessorCount(_NBL_JOBS_AMOUNT_)
115
-
if(_NBL_JOBS_AMOUNT_EQUAL0)
116
-
set(_NBL_JOBS_AMOUNT_1)
115
+
if(NOT"$ENV{_NBL_JOBS_AMOUNT_}"STREQUAL"")
116
+
set(_NBL_JOBS_AMOUNT_"$ENV{_NBL_JOBS_AMOUNT_}")
117
+
else()
118
+
ProcessorCount(_NBL_JOBS_AMOUNT_)
119
+
if(_NBL_JOBS_AMOUNT_EQUAL0)
120
+
set(_NBL_JOBS_AMOUNT_1)
121
+
endif()
117
122
endif()
118
123
endif()
119
124
@@ -129,7 +134,7 @@ if(NBL_CI_MODE)
129
134
endif()
130
135
endif()
131
136
132
-
set(_NBL_JOBS_AMOUNT_"${_NBL_JOBS_AMOUNT_}"CACHESTRING"Max jobs amount for the build to be invoked"FORCE)
0 commit comments