summaryrefslogtreecommitdiffstats
path: root/Modules/FindPerl.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/FindPerl.cmake')
-rw-r--r--Modules/FindPerl.cmake26
1 files changed, 9 insertions, 17 deletions
diff --git a/Modules/FindPerl.cmake b/Modules/FindPerl.cmake
index 79a88a1..af2328b 100644
--- a/Modules/FindPerl.cmake
+++ b/Modules/FindPerl.cmake
@@ -4,21 +4,13 @@
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
+)
- 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)
+MARK_AS_ADVANCED(
+ PERL
+)