mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-29 04:09:35 +03:00
FindPerlLibs: Add support for MSYS and CYGWIN
This commit is contained in:
1 parent
362a1f336d
commit
a6005371b0
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user