~ubuntu-branches/ubuntu/jaunty/cmake/jaunty-security

« back to all changes in this revision

Viewing changes to Modules/FindPerl.cmake

  • Committer: Bazaar Package Importer
  • Author(s): A. Maitland Bottoms
  • Date: 2005-03-02 09:22:44 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050302092244-y6o9j8wr27vqcqvx
Tags: 2.0.5-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
2
2
# this module looks for Perl
3
3
#
 
4
# PERL_EXECUTABLE - the full path to the Perl interpreter
 
5
# PERL_FOUND      - If false, don't attempt to use perl.
4
6
 
5
7
INCLUDE(${CMAKE_ROOT}/Modules/FindCygwin.cmake)
6
8
 
7
 
FIND_PROGRAM(PERL
 
9
FIND_PROGRAM(PERL_EXECUTABLE
8
10
  perl
9
11
  "C:/Perl/bin" 
 
12
  [HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActivePerl\\804]/bin
10
13
  [HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActivePerl\\628]/bin
11
14
  ${CYGWIN_INSTALL_PATH}/bin
12
15
)
13
16
 
14
17
MARK_AS_ADVANCED(
15
 
  PERL
 
18
  PERL_EXECUTABLE
16
19
)
 
20
 
 
21
IF (NOT PERL_EXECUTABLE)
 
22
  SET(PERL_FOUND "NO")
 
23
ELSE (NOT PERL_EXECUTABLE)
 
24
  SET(PERL_FOUND "YES")
 
25
 
 
26
# Deprecated settings for compatibility with CMake1.4
 
27
  SET (PERL ${PERL_EXECUTABLE})
 
28
ENDIF (NOT PERL_EXECUTABLE)
 
29