1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

FindPerlLibs: Add versioned perl library name for Cygwin

Based on downstream patch from Cygwin package for CMake by Marco Atzeri:

* 64864eb8f0/cmake/perl-libs.patch
This commit is contained in:
Lemures Lemniscati
2020-08-01 21:21:21 +09:00
committed by Brad King
parent fdcb7483d1
commit 24482499ea

View File

@@ -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