diff options
author | Marc Chevrier <marc.chevrier@sap.com> | 2017-12-12 10:42:28 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@sap.com> | 2017-12-12 10:42:28 (GMT) |
commit | a6005371b05eff6104cd94848c610cd7af841ab6 (patch) | |
tree | 6a6bdad246375ad36a3ce8dd86b27047c7be6f5d | |
parent | 362a1f336d29fb315db937dcce4dbd894bbffd2d (diff) | |
download | CMake-a6005371b05eff6104cd94848c610cd7af841ab6.zip CMake-a6005371b05eff6104cd94848c610cd7af841ab6.tar.gz CMake-a6005371b05eff6104cd94848c610cd7af841ab6.tar.bz2 |
FindPerlLibs: Add support for MSYS and CYGWIN
-rw-r--r-- | Modules/FindPerlLibs.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindPerlLibs.cmake b/Modules/FindPerlLibs.cmake index 86d5774..0b902e7 100644 --- a/Modules/FindPerlLibs.cmake +++ b/Modules/FindPerlLibs.cmake @@ -107,6 +107,11 @@ 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 "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 + list (APPEND PERL_POSSIBLE_LIBRARY_NAMES perl) + endif() ### PERL_INCLUDE_PATH find_path(PERL_INCLUDE_PATH |