[CMake] DESTDIR behaviour with different variable name

Michael Wild themiwi at gmail.com
Mon Apr 11 10:07:36 EDT 2011


On 04/11/2011 03:16 PM, Tomasz Grobelny wrote:
> I need behaviour that is available with DESTDIR (that is changing location
> of installation root after configuration and build is done) but with
> different name of environment variable (eg. MYDESTDIR). Is it possible with
> cmake?


export MYDESTDIR=$PWD/mydestdir
make install DESTDIR=$MYDESTDIR

HTH

Michael


More information about the CMake mailing list