Closed ReinhardKeil closed 4 months ago
To my understanding cmake always works in these two steps. The question is, whether cmake recognizes, if any of the configuration input changed to decide whether or not to re-generate the files used by ninja to build. This way a rebuild with only one source module being changed should not need to do anything during the first step.
It is CMake itself that checks the presence and validity of a cached CMake setup and skip the steps that are not needed. cbuild
does not make any assumption about the CMake cache presence or status. For this reason both calls are mandatory and have in practice no impact on performance.
This question is related to #1540
When using
cbuild
with option--debug
my output shows two CMake calls:Q1: Are these CMake calls exactly the same as without the option
--debug
? Q2: Do we always need the callcmake.exe -G Ninja -S C:\Test\USBD\tmp -B C:\Test\USBD\tmp -Wdev
? It seems to setup the environment.