diff --git a/cmake/OmimOptions.cmake b/cmake/OmimOptions.cmake index d6f9df296..6c577347e 100644 --- a/cmake/OmimOptions.cmake +++ b/cmake/OmimOptions.cmake @@ -1,6 +1,6 @@ set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type") option(CMAKE_UNITY_BUILD "Use unity build" ON) -set(CMAKE_UNITY_BUILD_BATCH_SIZE "50" CACHE STRING "Batch size for unity build") +set(CMAKE_UNITY_BUILD_BATCH_SIZE "24" CACHE STRING "Batch size for unity build") option(USE_CCACHE "Use ccache" ON) option(WITH_SYSTEM_PROVIDED_3PARTY "Enable compilation with system provided dependencies" OFF) option(BUILD_DESIGNER "Build application as design tool" OFF) diff --git a/docs/INSTALL_DESKTOP.md b/docs/INSTALL_DESKTOP.md index 87a74058c..b00fa7329 100644 --- a/docs/INSTALL_DESKTOP.md +++ b/docs/INSTALL_DESKTOP.md @@ -162,8 +162,8 @@ tools/unix/build_omim.sh -d help - If you get "not enough memory" errors during builds, you may disable [CMake Unity Builds](https://cmake.org/cmake/help/latest/prop_tgt/UNITY_BUILD.html) by passing `-DCMAKE_UNITY_BUILD=OFF` option to `cmake` invocation. Or you can reduce Unity build batch size from - the default `50` to a lower value (`2`-`16`) by passing `-DCMAKE_UNITY_BUILD_BATCH_SIZE=8`. - Note that these changes may significantly increase the build time. + the default `24` to a lower value (`2`-`16`) by passing `-DCMAKE_UNITY_BUILD_BATCH_SIZE=8`. + Note that these changes may significantly increase the full build time. ### Running