summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLemures Lemniscati <lemures.lemniscati@gmail.com>2020-08-01 21:21:21 +0900
committerBrad King <brad.king@kitware.com>2020-08-06 12:35:56 -0400
commit24482499ea5cfc1a55015456dada84da5124b3cd (patch)
treeaf64007273c9fa6b35321f8a2a8816903a0b1690
parentfdcb7483d11030fe597208843437ad6cce71ff50 (diff)
downloadcmake-24482499ea5cfc1a55015456dada84da5124b3cd.tar.gz
FindPerlLibs: Add versioned perl library name for Cygwin
Based on downstream patch from Cygwin package for CMake by Marco Atzeri: * https://github.com/matzeri/cygwin-pkg/blob/64864eb8f0d635ea44226e4b9a41a7ca59a1c7dd/cmake/perl-libs.patch
-rw-r--r--Modules/FindPerlLibs.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindPerlLibs.cmake b/Modules/FindPerlLibs.cmake
index 7e27f31880..d576b86cd5 100644
--- a/Modules/FindPerlLibs.cmake
+++ b/Modules/FindPerlLibs.cmake
@@ -108,6 +108,9 @@ if (PERL_EXECUTABLE)
if (NOT PERL_POSSIBLE_LIBRARY_NAMES)
set(PERL_POSSIBLE_LIBRARY_NAMES perl${PERL_VERSION_STRING} perl)
endif()
+ if(CMAKE_SYSTEM_NAME MATCHES "CYGWIN")
+ list (APPEND PERL_POSSIBLE_LIBRARY_NAMES perl${PERL_VERSION_STRING})
+ endif()
if (CMAKE_SYSTEM_NAME MATCHES "MSYS|CYGWIN")
# on MSYS and CYGWIN environments, current perl -V:libperl gives shared library name
# rather than the import library. So, extends possible library names