Fixed substituted string with paths and version
authorTomasz Kłoczko <kloczek@github.com>
Wed, 19 May 2021 17:20:11 +0000 (18:20 +0100)
committerTomasz Kłoczko <kloczek@github.com>
Wed, 19 May 2021 17:20:11 +0000 (18:20 +0100)
Use `@CMAKE_INSTALL_PREFIX@`, `${prefix}/@CMAKE_INSTALL_INCLUDEDIR@` and
`@CMAKE_PROJECT_VERSION@`.

spirv-headers.pc.in

index ccc4205..282144f 100644 (file)
@@ -1,9 +1,9 @@
-prefix=@prefix@
-includedir=@includedir@
+prefix=@CMAKE_INSTALL_PREFIX@
+includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
 
 Name: spirv-headers
 Description: Header files from the SPIR-V registry
-Version: @VERSION@
+Version: @CMAKE_PROJECT_VERSION@
 Requires:
 Libs:
 Cflags: -I${includedir}