diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2001-12-04 15:55:17 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2001-12-04 15:55:17 (GMT) |
commit | cb4f04c94e5815393e9b1d765588c23656149b4e (patch) | |
tree | e1586635e8c85d0e88faf7b42451f9d8f2de40ca /Modules/FindPerl.cmake | |
parent | f68e64e2d8488a57740cc5b2fb0f914a769c4e8e (diff) | |
download | CMake-cb4f04c94e5815393e9b1d765588c23656149b4e.zip CMake-cb4f04c94e5815393e9b1d765588c23656149b4e.tar.gz CMake-cb4f04c94e5815393e9b1d765588c23656149b4e.tar.bz2 |
Remove unneeded test and code duplication. Add WIN32 test. Make all ADVANCED.
Diffstat (limited to 'Modules/FindPerl.cmake')
-rw-r--r-- | Modules/FindPerl.cmake | 26 |
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 +) |