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.
結果變數¶
該模組定義了以下變數:
PerlLibs_FOUND在 3.3 版被加入.
Boolean indicating whether (the requested version of)
<perl.h>andlibperlwere found.PerlLibs_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.
快取變數¶
The following cache variables may also be set:
PERL_INCLUDE_PATHDirectory containing
perl.hand other Perl header files.PERL_LIBRARYPath to the
libperl.PERL_EXECUTABLEperl執行檔的完整路徑。
已棄用的變數¶
The following variables are provided for backward compatibility:
PERLLIBS_FOUND在 4.2 版之後被棄用: Use
PerlLibs_FOUND, which has the same value.Boolean indicating whether (the requested version of)
<perl.h>andlibperlwere found.
範例¶
Finding Perl libraries and specifying the minimum required version:
find_package(PerlLibs 6.0)
另請參見¶
The
FindPerlmodule to find the Perl interpreter.