FindPerlLibs¶
Finds Perl libraries:
find_package(PerlLibs [<version>] [...])
Perl is a general-purpose, interpreted, dynamic programming language.
This module detects whether Perl interpreter is installed via the
FindPerl module and determines the locations of Perl include paths,
libraries, and the library name.
Result Variables¶
This module defines the following variables:
PerlLibs_FOUNDAdded in version 3.3.
Boolean indicating whether (the requested version of)
<perl.h>andlibperlwere found.PerlLibs_VERSIONAdded in version 4.2.
The version of Perl library found.
PERL_SITESEARCHPath to the sitesearch install directory (
-V:installsitesearch).PERL_SITEARCHPath to the sitelib install directory (
-V:installsitearch).PERL_SITELIBPath to the sitelib install directory (
-V:installsitelib).PERL_VENDORARCHPath to the vendor arch install directory (
-V:installvendorarch).PERL_VENDORLIBPath to the vendor lib install directory (
-V:installvendorlib).PERL_ARCHLIBPath to the core arch lib install directory (
-V:archlib).PERL_PRIVLIBPath to the core priv lib install directory (
-V:privlib).PERL_UPDATE_ARCHLIBPath to the update arch lib install directory (
-V:installarchlib).PERL_UPDATE_PRIVLIBPath to the update priv lib install directory (
-V:installprivlib).PERL_EXTRA_C_FLAGSCompilation flags used to build Perl.
Cache Variables¶
The following cache variables may also be set:
PERL_INCLUDE_PATHDirectory containing
perl.hand other Perl header files.PERL_LIBRARYPath to the
libperl.PERL_EXECUTABLEFull path to the
perlexecutable.
Deprecated Variables¶
The following variables are provided for backward compatibility:
PERLLIBS_FOUNDDeprecated since version 4.2: Use
PerlLibs_FOUND, which has the same value.Boolean indicating whether (the requested version of)
<perl.h>andlibperlwere found.
Examples¶
Finding Perl libraries and specifying the minimum required version:
find_package(PerlLibs 6.0)
See Also¶
The
FindPerlmodule to find the Perl interpreter.