1
0
mirror of https://github.com/libjpeg-turbo/libjpeg-turbo.git synced 2026-10-23 11:48:53 +03:00
Files
libjpeg-turbo/sharedlib
DRC e1dbfa7be7 Build: Make package cfg files/install relocatable
This fully reverts c96e93b1f2.

Specifying a full path with install(TARGETS ...) causes the paths in the
CMake package config files to be hard-coded, which effectively makes the
package non-relocatable.  Specifying a full path with other install()
commands breaks the --prefix option to cmake --install.  There is in
fact no sane way to support blank install directories.  Integrators who
wish to install certain files into the main libjpeg-turbo install
directory can set a particular CMAKE_INSTALL_*DIR variable to
"<CMAKE_INSTALL_PREFIX>", with the understanding that doing so will
break relocatability in the same way that
c96e93b1f2 did.

This commit also tweaks the RPM spec so that RPMs built from a source
RPM will contain relocatable CMake package config files.
2026-03-27 15:53:53 -04:00
..