[cmake] Refactor root cmake

Moved options to OmimOptions.cmake
Moved some parts of configuration to OmimConfig.cmake
Removed disable color output option
Renamed DISABLE_UNITY to CMAKE_UNITY_BUILD
Renamed DIABLE_CCACHE to USE_CCACHE

Signed-off-by: Andrei Shkrob <andrei@shkrob.dev>
This commit is contained in:
Andrei Shkrob
2025-05-21 21:44:07 +02:00
committed by Konstantin Pastbin
parent c1b45828b0
commit 0996917a1b
8 changed files with 125 additions and 185 deletions

View File

@@ -160,9 +160,9 @@ tools/unix/build_omim.sh -d help
#### Build issues
- 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) with `export UNITY_DISABLE=1`
or by passing `-DUNITY_DISABLE=1` option to `cmake` invocation. Or you can reduce Unity build batch size from
the default `50` to a lower value (`2`-`16`) with `export UNITY_BUILD_BATCH_SIZE=8`.
[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.
### Running