summaryrefslogtreecommitdiffstats
path: root/Modules/FindPerl.cmake
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2001-11-02 21:44:00 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2001-11-02 21:44:00 (GMT)
commit3714d9419c3f90a753bb7e96c9260b674f486916 (patch)
tree3f5ad75c44338e22e5f7ee1754f5c506e11cdd6f /Modules/FindPerl.cmake
parentbc673070bc5f5fccdf404fd687ee57c9bb6f0684 (diff)
downloadCMake-3714d9419c3f90a753bb7e96c9260b674f486916.zip
CMake-3714d9419c3f90a753bb7e96c9260b674f486916.tar.gz
CMake-3714d9419c3f90a753bb7e96c9260b674f486916.tar.bz2
Move usual Unix commands to FindUnixCommands, use FingCygwin in other modules
Diffstat (limited to 'Modules/FindPerl.cmake')
-rw-r--r--Modules/FindPerl.cmake25
1 files changed, 20 insertions, 5 deletions
diff --git a/Modules/FindPerl.cmake b/Modules/FindPerl.cmake
index 916fcf9..79a88a1 100644
--- a/Modules/FindPerl.cmake
+++ b/Modules/FindPerl.cmake
@@ -2,8 +2,23 @@
# this module looks for Perl
#
-FIND_PROGRAM(PERL
- perl
- "C:/Perl/bin"
- [HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActivePerl\\628]/bin
-)
+INCLUDE(${CMAKE_ROOT}/Modules/FindCygwin.cmake)
+
+IF (CYGWIN_INSTALL_PATH)
+
+ FIND_PROGRAM(PERL
+ perl
+ "C:/Perl/bin"
+ [HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActivePerl\\628]/bin
+ ${CYGWIN_INSTALL_PATH}/bin
+ )
+
+ELSE (CYGWIN_INSTALL_PATH)
+
+ FIND_PROGRAM(PERL
+ perl
+ "C:/Perl/bin"
+ [HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActivePerl\\628]/bin
+ )
+
+ENDIF (CYGWIN_INSTALL_PATH)