From 71e6d7f77c64631054b98c316becea55657b61e1 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <nathbappai@gmail.com>
Date: Sat, 28 Aug 2021 21:04:12 +0530
Subject: [PATCH 3/3] CMake: Install pkgconfig file

---
 CMakeLists.txt   | 4 ++--
 ffts.pc.cmake.in | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index fa0eadb..b86fad3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -537,7 +537,7 @@ if(ENABLE_STATIC OR ENABLE_SHARED)
 endif(ENABLE_STATIC OR ENABLE_SHARED)
 
 # generate packageconfig file
-if(UNIX)
+if(UNIX OR MINGW)
   include(FindPkgConfig QUIET)
   if(PKG_CONFIG_FOUND)
       # convert lists of link libraries into -lstdc++ -lm etc..
@@ -549,7 +549,7 @@ if(UNIX)
       install(FILES       "${CMAKE_CURRENT_BINARY_DIR}/ffts.pc"
               DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
   endif(PKG_CONFIG_FOUND)
-endif(UNIX)
+endif(UNIX OR MINGW)
 
 install( FILES
     ${FFTS_HEADERS}
