CMake: use conventional prefix and incluedir variables in pkg-config

This is more standard, and has some advantages when cross compiling.
This also means that the pkg-config files generated by Meson and CMake
now match.
This commit is contained in:
Dylan Baker 2024-09-09 11:02:00 -07:00
parent 672b577495
commit ba6d78ba67

View File

@ -1,4 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
Name: @PROJECT_NAME@
Description: JSON for Modern C++
Version: @PROJECT_VERSION@
Cflags: -I@CMAKE_INSTALL_FULL_INCLUDEDIR@
Cflags: -I${includedir}