[CMake] What is the purpose of INSTALL_DIR in ExternalProject_Add command?

Theodore Papadopoulo Theodore.Papadopoulo at inria.fr
Thu Apr 9 09:08:13 EDT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/09/2015 01:26 PM, Ryan Pavlik wrote:
> It's for if your use case requires the project to be installed in
> a specific location that's not the automatically generated one.
> For instance, if you're building multiple external projects you
> might have them all install to the same subdirectory of the binary
> directory for convenience.
> 
> Ryan

I personally believe that you should never use the files constructed
in the build directory. This can work for binaries or static libraries
but is a point of failure with dynamic libraries (often the relative
paths of those are different in the final install).

One case where installing is absolutely necessary (at least in my
somewhat limited experience); windows, which requires that all the
dynamic libraries used by a program to be in the smae install directory.

	Hope it help a little.

	Theo.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlUmeb0ACgkQEr8WrU8nPV2U8QCeKO8ldeKUnQHktROVz1uzo0x6
ZDQAoJOL8KciN9pq5H+09tmSRhqSqiQ6
=J+yG
-----END PGP SIGNATURE-----


More information about the CMake mailing list