[CMake] Specify Configuration with -D on command line

Dominik Szczerba dominik at itis.ethz.ch
Mon Oct 13 10:24:07 EDT 2014


Hi,

Is it possible to do something like:

cmake -DBOOST_LIBRARYDIR:PATH=C:/tmp//$(Configuration) ...

from command line? Such that when I swich between release/debug in the
gui the correct versions will be taken? Windows 7 64 bit, Visual
Studio 2012 here.

Many thanks!
Dominik


More information about the CMake mailing list