FindPerlLibs¶
Finds Perl libraries. Perl is a general-purpose, interpreted, dynamic programming language. This module detects whether Perl is installed and determines the locations of include paths, libraries, and the library name.
Result Variables¶
This module sets the following variables:
PerlLibs_FOUNDTrue if
perl.handlibperlwere found. For backward compatibility, thePERLLIBS_FOUNDvariable is also set to the same value.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.
Examples¶
Finding Perl libraries and specifying the minimum required version:
find_package(PerlLibs 6.0)