mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[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:
committed by
Konstantin Pastbin
parent
c1b45828b0
commit
0996917a1b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user