I am invoking cmake as part of a jenkins script and am using &quot;cmake --build .&quot; to kick off the build.  This works but does not do the equivalent of &quot;make -j4&quot; to take advantage of all 4 cores when run on a linux machine.  When run on a windows machine the building in parallel is already taken care of by an add_definitions(/MP$(NUMBER_OF_PROCESSORS)) command in the CMakeLists.txt.  Is there a command line option to get &quot;cmake --build&quot; to invoke make with the appropriate -j option for linux builds ?  Or something I can add to my CMakeLists.txt similar to the /MP option for Visual Studio builds ?  Or will I have to invoke &quot;make -j4&quot; on linux and &quot;cmake --build .&quot; on windows instead of being able to keep the same build command irrespective of OS ?<br>
<br>--<br>Glenn<br><br>