Commit c5feb8c6 authored by Ian Scott's avatar Ian Scott

Added PERL_FOUND

parent d7ebdb9d
#
# this module looks for Perl
#
# PERL_EXECUTABLE - the full path to the Perl interpreter
# PERL_FOUND - If false, don't attempt to use perl.
INCLUDE(${CMAKE_ROOT}/Modules/FindCygwin.cmake)
FIND_PROGRAM(PERL
FIND_PROGRAM(PERL_EXECUTABLE
perl
"C:/Perl/bin"
[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActivePerl\\628]/bin
......@@ -12,5 +14,15 @@ FIND_PROGRAM(PERL
)
MARK_AS_ADVANCED(
PERL
PERL_EXECUTABLE
)
IF (NOT PERL_EXECUTABLE)
SET(PERL_FOUND "NO")
ELSE (NOT PERL_EXECUTABLE)
SET(PERL_FOUND "YES")
# Deprecated settings for compatibility with CMake1.4
SET (PERL ${PERL_EXECUTABLE})
ENDIF (NOT PERL_EXECUTABLE)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment