diff options
author | Lemures Lemniscati <lemures.lemniscati@gmail.com> | 2020-08-01 12:21:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-08-06 16:35:56 (GMT) |
commit | 24482499ea5cfc1a55015456dada84da5124b3cd (patch) | |
tree | af64007273c9fa6b35321f8a2a8816903a0b1690 | |
parent | fdcb7483d11030fe597208843437ad6cce71ff50 (diff) | |
download | CMake-24482499ea5cfc1a55015456dada84da5124b3cd.zip CMake-24482499ea5cfc1a55015456dada84da5124b3cd.tar.gz CMake-24482499ea5cfc1a55015456dada84da5124b3cd.tar.bz2 |
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.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindPerlLibs.cmake b/Modules/FindPerlLibs.cmake index 7e27f31..d576b86 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 |