aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBiswapriyo Nath <nathbappai@gmail.com>2021-09-15 14:31:10 +0530
committerJakub Jelen <jjelen@redhat.com>2021-09-29 16:35:04 +0200
commit4a2758ecd6041bf18ab50f215712b54ef46e33cd (patch)
treefe09d7ac9083ef6861fdfa270489c66879110d9e
parent1ab2340644109442f933b1fb47dee927bed29f8e (diff)
downloadlibssh-4a2758ecd6041bf18ab50f215712b54ef46e33cd.tar.gz
libssh-4a2758ecd6041bf18ab50f215712b54ef46e33cd.tar.xz
libssh-4a2758ecd6041bf18ab50f215712b54ef46e33cd.zip
cmake: Install pkgconfig file in MinGW
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
-rw-r--r--CMakeLists.txt4
1 files 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)