diff --git a/cmake/cxxopts.cmake b/cmake/cxxopts.cmake index 03e84cf5..b4d6c464 100644 --- a/cmake/cxxopts.cmake +++ b/cmake/cxxopts.cmake @@ -154,6 +154,10 @@ function(cxxopts_install_logic) set(CPACK_DEBIAN_COMPRESSION_TYPE "xz") set(PKG_CONFIG_FILE_NAME "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc") + if(CXXOPTS_USE_UNICODE_HELP) + set(PKG_CONFIG_REQUIRES "icu-cu") + set(PKG_CONFIG_EXTRA_CFLAGS "-DCXXOPTS_USE_UNICODE") + endif() configure_file("${PackagingTemplatesDir}/pkgconfig.pc.in" "${PKG_CONFIG_FILE_NAME}" @ONLY) install(FILES "${PKG_CONFIG_FILE_NAME}" DESTINATION "${CMAKE_INSTALL_LIBDIR_ARCHIND}/pkgconfig" diff --git a/packaging/pkgconfig.pc.in b/packaging/pkgconfig.pc.in index 5f4490eb..256eda2d 100644 --- a/packaging/pkgconfig.pc.in +++ b/packaging/pkgconfig.pc.in @@ -5,4 +5,5 @@ Name: @PROJECT_NAME@ Description: @PROJECT_DESCRIPTION@ URL: @PROJECT_HOMEPAGE_URL@ Version: @PROJECT_VERSION@ -Cflags: -I${includedir} +Requires: @PKG_CONFIG_REQUIRES@ +Cflags: -I${includedir} @PKG_CONFIG_EXTRA_CFLAGS@