vcpkg/ports/expat/pkgconfig.patch
JonLiu1993 3a98608b80
[expat] Update to 2.4.1 (#17856)
* [expat] Update to 2.3.0

* update version

* [expat] Update to 2.4.1

* update version

* add pkgconfig.patch

* update version

* revert pkgconfig.patch

* update version

* revert patch format

* update version
2021-06-11 08:48:00 -07:00

14 lines
509 B
Diff

diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt
index cd12a99..03c2c4d 100644
--- a/expat/CMakeLists.txt
+++ b/expat/CMakeLists.txt
@@ -419,6 +419,8 @@ expat_install(FILES lib/expat.h lib/expat_external.h DESTINATION ${CMAKE_INSTALL
#
# pkg-config file
#
+string(TOUPPER "${CMAKE_BUILD_TYPE}" BUILD_TYPE_UPPER)
+set(_EXPAT_OUTPUT_NAME ${_EXPAT_OUTPUT_NAME}${CMAKE_${BUILD_TYPE_UPPER}_POSTFIX})
if(EXPAT_BUILD_PKGCONFIG)
set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix "\${prefix}")