We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eac097 commit 0c2e66eCopy full SHA for 0c2e66e
cmake/godotcpp.cmake
@@ -200,10 +200,15 @@ function(godotcpp_generate)
200
message(STATUS "Using ${PROC_N} cores for multi-threaded compilation.")
201
# TODO You can override it at configure time with ...." )
202
else()
203
+ if(CMAKE_BUILD_PARALLEL_LEVEL)
204
+ set(_cores "${CMAKE_BUILD_PARALLEL_LEVEL}")
205
+ else()
206
+ set(_cores "all")
207
+ endif()
208
message(
209
STATUS
- "Using ${CMAKE_BUILD_PARALLEL_LEVEL} cores, You can override"
- " it at configure time by using -j <n> or --parallel <n> on the build"
210
+ "Using ${_cores} cores. You can override"
211
+ " this at configure time by using -j <n> or --parallel <n> in the build"
212
" command."
213
)
214
message(STATUS " eg. cmake --build . -j 7 ...")
0 commit comments