File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -542,14 +542,17 @@ if(NOT NodeJS_LIBRARY)
542542
543543 message (STATUS "Build NodeJS shared library" )
544544
545+ # Create build output directory
546+ execute_process (COMMAND ${CMAKE_COMMAND} -E make_directory ${NodeJS_OUTPUT_PATH} /out)
547+
545548 include (ProcessorCount)
546549
547550 ProcessorCount(N)
548551
549- if (NOT N EQUAL 0 )
550- execute_process (COMMAND sh -c "make -j${N} -C out BUILDTYPE=${CMAKE_BUILD_TYPE} V=1" WORKING_DIRECTORY "${NodeJS_OUTPUT_PATH} " )
552+ if (N GREATER 1 )
553+ execute_process (COMMAND sh -c "make -j${N} -C ${NodeJS_OUTPUT_PATH} / out BUILDTYPE=${CMAKE_BUILD_TYPE} V=1" WORKING_DIRECTORY "${NodeJS_OUTPUT_PATH} " )
551554 else ()
552- execute_process (COMMAND sh -c "make -C out BUILDTYPE=${CMAKE_BUILD_TYPE} V=1" WORKING_DIRECTORY "${NodeJS_OUTPUT_PATH} " )
555+ execute_process (COMMAND sh -c "make -C ${NodeJS_OUTPUT_PATH} / out BUILDTYPE=${CMAKE_BUILD_TYPE} V=1" WORKING_DIRECTORY "${NodeJS_OUTPUT_PATH} " )
553556 endif ()
554557 endif ()
555558 endif ()
You can’t perform that action at this time.
0 commit comments