mirror of
https://github.com/jarro2783/cxxopts.git
synced 2026-01-18 01:11:24 +01:00
* cmake: set PROJECT_DESCRIPTION and PROJECT_HOMEPAGE_URL after project() Otherwise they are set to an empty string. * cmake: set the pkg-config URL field Since the information is already there to set it. * cmake: use CMAKE_INSTALL_DATAROOTDIR if CMAKE_LIBRARY_ARCHITECTURE is unset This causes files on NixOS to be put in the proper architecture independent place, which otherwise was selecting the architecture dependent location. * cmake: Properly set pkg-config requires when configured with ICU In this case the pkg-config file needs to set icu-cu in the `Required` field, and needs to add the flag `-DCXXOPTS_USE_UNICODE` to the `Cflags` field. * cmake: cxxopts is not arch independent when built with ICU support Since it links to an architecture dependent ICU
10 lines
272 B
PkgConfig
10 lines
272 B
PkgConfig
prefix=@CMAKE_INSTALL_PREFIX@
|
|
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
|
|
|
|
Name: @PROJECT_NAME@
|
|
Description: @PROJECT_DESCRIPTION@
|
|
URL: @PROJECT_HOMEPAGE_URL@
|
|
Version: @PROJECT_VERSION@
|
|
Requires: @PKG_CONFIG_REQUIRES@
|
|
Cflags: -I${includedir} @PKG_CONFIG_EXTRA_CFLAGS@
|