NINJA cmake generator problem
The problem is that if you add a lot of definitions for the compiler to the CMake project file through target_compile_definitions
and other functions, then when generating the Ninja configuration files, the DEFINES
graph contains definitions with a line break! This is a bug for the Ninja build system and it doesn't respect the definitions on the next line and the code compiles incorrectly or doesn't compile at all!
For example:
DEFINES = -DRT_CONSOLE -DRT_ES -DRT_TIME_BOMB -DRT_TIME_BOMB_SERVER=\"XXX.XXX.XXX.XXX\" -DRT_TIME_BOMB_TIMESTAMP=1662235144
-DRT_BRAKADA_BYPASS -DTOML_EXCEPTIONS=0 -DUNICODE -DWIN32_LEAN_AND_MEAN -D_CRT_SECURE_NO_WARNINGS -Drosh_toolbox_bundle_EXPORTS
Line -DRT_XIGNCODE_BYPASS -DTOML_EXCEPTIONS=0 -DUNICODE -DWIN32_LEAN_AND_MEAN -D_CRT_SECURE_NO_WARNINGS -Drosh_toolbox_bundle_EXPORTS
not respected by ninja build system.
Edited by Sergey Sergeev