Since this is a header-only library, the CMake Version file should be marked architecture-independent with the ARCH_INDEPENDENT option. As the option has been added in CMake 3.14 and spriv-headers supports CMake 3.0 the option has to be passed only if supported.
With installed pkgconfig file other projects build processes can
detest availability of the spirv-headers and require some minimum
version of the spirv-headers to be present in build environment.
Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
Support the handling of the `DESTDIR` environment variable for
environments (UNIX-based) opting for an GNU-style installation over
a CMake-style installation.
Cc: sl1pkn07 <sl1pkn07@gmail.com>
Signed-off-by: James Knight <james.d.knight@live.com>
Allow the common install target to support the installation of
header files (rather then having a custom target). Developers should
be able to invoke the install target as follows:
cmake --build . --target install
This commit leaves the original custom target to install headers
for interim support.
Signed-off-by: James Knight <james.d.knight@live.com>