summaryrefslogtreecommitdiffstats
path: root/Modules/FindPerl.cmake
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2008-01-18 18:15:12 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2008-01-18 18:15:12 (GMT)
commit4f37eacfdbcdda1f68edfa9e4428c9a040f797fb (patch)
treeb85a155e908314c11d2c479db5eecfdd5d06708e /Modules/FindPerl.cmake
parentf74c8cf0d87337f3a2f66a2c0b8ed682ad5b9e5c (diff)
downloadCMake-4f37eacfdbcdda1f68edfa9e4428c9a040f797fb.zip
CMake-4f37eacfdbcdda1f68edfa9e4428c9a040f797fb.tar.gz
CMake-4f37eacfdbcdda1f68edfa9e4428c9a040f797fb.tar.bz2
ENH: cleanup FindPerl and FindTcl (use ActiveState CurrentVersion, and support Tcl/Tk 8.5)
Diffstat (limited to 'Modules/FindPerl.cmake')
-rw-r--r--Modules/FindPerl.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/FindPerl.cmake b/Modules/FindPerl.cmake
index 3ee31fa..0ce3408 100644
--- a/Modules/FindPerl.cmake
+++ b/Modules/FindPerl.cmake
@@ -6,11 +6,15 @@
INCLUDE(FindCygwin)
+GET_FILENAME_COMPONENT(
+ ActivePerl_CurrentVersion
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActivePerl;CurrentVersion]"
+ NAME)
+
FIND_PROGRAM(PERL_EXECUTABLE
perl
"C:/Perl/bin"
- [HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActivePerl\\804]/bin
- [HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActivePerl\\628]/bin
+ [HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActivePerl\\${ActivePerl_CurrentVersion}]/bin
${CYGWIN_INSTALL_PATH}/bin
)