diff --git a/docs/dev/build_linux.md b/docs/dev/build_linux.md index 395a2dcb139..2710ef09410 100644 --- a/docs/dev/build_linux.md +++ b/docs/dev/build_linux.md @@ -53,7 +53,10 @@ The software was validated on: cmake -DCMAKE_BUILD_TYPE=Release .. cmake --build . --parallel ``` -The process may take some time to finish. + The process may take some time to finish. If you are using a system with limited resources, it is recommended to specify a lower number of parallel jobs to avoid overloading your system. This can help maintain system responsiveness and stability during the build process. Use `nproc` to find the number of available processing units. For example, to use 8 parallel jobs, run the following command: + ```sh + cmake --build . --parallel 8 + ``` ### Additional Build Options diff --git a/docs/dev/build_windows.md b/docs/dev/build_windows.md index a8f906cadcd..eaf695f898b 100644 --- a/docs/dev/build_windows.md +++ b/docs/dev/build_windows.md @@ -44,7 +44,7 @@ Supported configurations: >* `-DCMAKE_BUILD_TYPE=RelWithDebInfo`: This option generates PDB files with release information, making it suitable for debugging optimized builds.
>* `-DCMAKE_BUILD_TYPE=Debug`: This option generates PDB files optimized for debugging, providing comprehensive debugging information. -4. Build generated solution in Visual Studio or run `cmake --build . --config Release --verbose -j8` to build from the command line. Be aware that this process may take some time. +4. Build generated solution in Visual Studio or run `cmake --build . --config Release --verbose -j` to build from the command line. View the number of available processing units with `WMIC cpu get numberofLogicalProcessors`. Be aware that this process may take some time. 5. Before running the samples, add paths to the Threading Building Blocks (TBB) binaries used for the build to the `%PATH%` environment variable. By default, TBB binaries are downloaded by the CMake-based script to the `/temp/tbb/bin` folder.