[CMake] What is the purpose of INSTALL_DIR in ExternalProject_Add command?
Nils Gladitz
nilsgladitz at gmail.com
Fri Apr 10 05:44:39 EDT 2015
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