Finds a Perl interpreter:
find_package(Perl [<version>] [...])
Perl is a general-purpose, interpreted, dynamic programming language.
This module defines the following variables:
Perl_FOUNDAdded in version 3.3.
Boolean indicating whether the (requested version of) Perl executable was found.
Perl_VERSIONAdded in version 4.2.
The version of Perl found.
The following cache variables may also be set:
PERL_EXECUTABLEFull path to the perl executable.
The following variables are provided for backward compatibility:
PERL_FOUNDDeprecated since version 4.2: Use Perl_FOUND, which has the same value.
Boolean indicating whether the (requested version of) Perl executable was found.
PERL_VERSION_STRINGDeprecated since version 4.2: Superseded by the Perl_VERSION.
The version of Perl found.
Finding the Perl interpreter and executing it in a process:
find_package(Perl)
if(Perl_FOUND)
execute_process(COMMAND ${PERL_EXECUTABLE} --help)
endif()
The FindPerlLibs to find Perl libraries.