From 4a2758ecd6041bf18ab50f215712b54ef46e33cd Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Wed, 15 Sep 2021 14:31:10 +0530 Subject: [PATCH] cmake: Install pkgconfig file in MinGW Signed-off-by: Biswapriyo Nath Reviewed-by: Jakub Jelen --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1f1925ef..32172d95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -124,7 +124,7 @@ add_subdirectory(include) add_subdirectory(src) # pkg-config file -if (UNIX) +if (UNIX OR MINGW) configure_file(libssh.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libssh.pc) install( FILES @@ -134,7 +134,7 @@ install( COMPONENT pkgconfig ) -endif (UNIX) +endif (UNIX OR MINGW) # CMake config files include(CMakePackageConfigHelpers)