[PATCH 1/1] cmake: Install libraries to DATADIR from GNUInstallDirs

This moves default installation location of device libraries to /usr/share.
Note that libclc.pc was already installed to /usr/share.
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>

This moves default installation location of device libraries to /usr/share.
Note that libclc.pc was already installed to /usr/share.
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
---
I was not sure if this should use LIBDIR or DATADIR, but in the end the
libraries are independent of CPU architecture and it can be easily
overridden.
I don't have a strong preference, let me know if LIBDIR looks better to
you.

ping.

Dave, Tom, do you have a preference for the default location?

thanks,
Jan

This moves default installation location of device libraries to /usr/share.
Note that libclc.pc was already installed to /usr/share.
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
---
I was not sure if this should use LIBDIR or DATADIR, but in the end the
libraries are independent of CPU architecture and it can be easily
overridden.
I don't have a strong preference, let me know if LIBDIR looks better to
you.

There was a bug filed by one of the OS packages to put the libs in DATADIR,
which is why it was done that way. The rationale was that the contents
are the same on all arches, so it is really an architecture independent
package, so it doesn't belong in LIBDIR.

-Tom

> This moves default installation location of device libraries to /usr/share.
> Note that libclc.pc was already installed to /usr/share.
> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
> ---
> I was not sure if this should use LIBDIR or DATADIR, but in the end the
> libraries are independent of CPU architecture and it can be easily
> overridden.
> I don't have a strong preference, let me know if LIBDIR looks better to
> you.
>

There was a bug filed by one of the OS packages to put the libs in DATADIR,
which is why it was done that way. The rationale was that the contents
are the same on all arches, so it is really an architecture independent
package, so it doesn't belong in LIBDIR.

thanks. that's what this patch does for cmake, does it look ok to you?

the defaults in configure.py are libclc.pc to $PREFIX/share/pkgconfig
and *.bc to $PREFIX/lib/clc which was a bit confusing.

Jan

ping.

This moves default installation location of device libraries to /usr/share.
Note that libclc.pc was already installed to /usr/share.
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
---
I was not sure if this should use LIBDIR or DATADIR, but in the end the
libraries are independent of CPU architecture and it can be easily
overridden.
I don't have a strong preference, let me know if LIBDIR looks better to
you.

There was a bug filed by one of the OS packages to put the libs in DATADIR,
which is why it was done that way. The rationale was that the contents
are the same on all arches, so it is really an architecture independent
package, so it doesn't belong in LIBDIR.

thanks. that's what this patch does for cmake, does it look ok to you?

LGTM, thanks.