Install pkg-config file on MINGW also

Mingw follows unix conventions and often expects pkg-config files to be present.
This commit is contained in:
Tony Theodore 2020-06-02 18:18:40 +10:00 committed by GitHub
parent e7948fdf84
commit 53fe73a720
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,7 @@ if (ZSTD_BUILD_STATIC)
OUTPUT_NAME ${STATIC_LIBRARY_BASE_NAME}) OUTPUT_NAME ${STATIC_LIBRARY_BASE_NAME})
endif () endif ()
if (UNIX) if (UNIX OR MINGW)
# pkg-config # pkg-config
set(PREFIX "${CMAKE_INSTALL_PREFIX}") set(PREFIX "${CMAKE_INSTALL_PREFIX}")
set(LIBDIR "${CMAKE_INSTALL_LIBDIR}") set(LIBDIR "${CMAKE_INSTALL_LIBDIR}")