[CMake] What is the purpose of INSTALL_DIR in ExternalProject_Add command?
Cedric Doucet
cedric.doucet at inria.fr
Fri Apr 10 07:15:32 EDT 2015
Thank you Nils!
It works!
Cédric
----- Mail original -----
> De: "Nils Gladitz" <nilsgladitz at gmail.com>
> À: "Cedric Doucet" <cedric.doucet at inria.fr>, cmake at cmake.org
> Envoyé: Vendredi 10 Avril 2015 11:44:39
> Objet: Re: [CMake] What is the purpose of INSTALL_DIR in ExternalProject_Add command?
>
> On 04/10/2015 11:16 AM, Cedric Doucet wrote:
>
> > is it possible to make INSTALL_DIR depend on PREFIX?
> > I have tried "INSTALL_DIR <PREFIX>/install" but it does not seem to work:
> > 'install' repository is not created.
>
> I don't think so ... but you could use the same variable to construct both.
>
> e.g.
>
> set(MY_PREFIX /foo)
>
> ExternalProject_Add(foo
> PREFIX ${MY_PREFIX}
> INSTALL_DIR ${MY_PREFIX}/install
> ...
> )
>
> Nils
>
More information about the CMake
mailing list