[CMake] Passing parameters via command prompt

Eric Noulard eric.noulard at gmail.com
Wed Nov 26 16:31:19 EST 2008


2008/11/26 Steven Van Ingelgem <steven at vaningelgem.be>:
> Hi Eric,
>
>
> That's pretty bad as well, because if I change 1 small cpp file, I will be
> rebuilding everything... Not very nice :).
> I always run "cmake .", but is it possible to do for example:
>
> ------
> mkdir static_release
> cd static_release
> cmake ..

As already told by others it is indeed possible.
For systematic testing & build I usually delete the whole build dir.
However assuming you have a separate build dir for each build variant
you may either:

  a) only rerun cmake & build
    which should lead to a minimal rebuild

  b) only delete the CMakeCache.txt which will do a whole CMake rerun
    but potentially (depending on what you do with CMake)  a minimal build

using a) or b) should be safe **most of the time** and will save you
most of the build time.

a) may be unsafe in certain cases

-- 
Erk


More information about the CMake mailing list