[CMake] Path to installed target

Eric Noulard eric.noulard at gmail.com
Wed Jan 12 07:01:53 EST 2011


2011/1/12 Alexey Livshits <livchits at web.de>:
> Hello,
> how can I determine the path to installed target?

When ?
If it is inside a CMakeLists.txt i.e. at CMake time usually you can't
unless you specify absolute install path in your install rules.

> The problem is, if I
> set DESTDIR for example "D:\", I the install path becomes
> "D:\Programme\<project name>", so I cannot use DESTDIR to determine
> the path.

That's the purpose of DESTDIR?
What do you want to do?


-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list