vcpkg/ports/expat/pkgconfig.patch
Alexander Neumann 53a47bca4f
[expat] Fix a few details with expat. (#13022)
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
2020-08-27 22:20:06 -07:00

16 lines
566 B
Diff

diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt
index a67f081b1..cc220f2a1 100644
--- a/expat/CMakeLists.txt
+++ b/expat/CMakeLists.txt
@@ -294,7 +294,9 @@ 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(NOT MSVC)
+if(1)
set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix "\${prefix}")
set(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")