[CMake] Find PerlLibs fails;

Alexander Neundorf a.neundorf-work at gmx.net
Sun Jul 6 05:15:45 EDT 2008


On Monday 30 June 2008, Georgios Petasis wrote:
> Hi all,
>
> I am running cmake 2.6 under windows:
>
> MESSAGE ( STATUS "Searching for Perl..." )
> FIND_PACKAGE ( Perl )
> FIND_PACKAGE ( PerlLibs )
> IF ( PERL_FOUND )
>   MESSAGE ( STATUS "  PERL_EXECUTABLE:        " ${PERL_EXECUTABLE} )
>   MESSAGE ( STATUS "  PERL_INCLUDE_PATH:      " ${PERL_INCLUDE_PATH} )
>   MESSAGE ( STATUS "  PERL_LIBRARY:           " ${PERL_LIBRARY} )
> ENDIF ( PERL_FOUND )
>
> The output is:
>
> -- Searching for Perl...
> -- Found Perl: C:/Program Files (x86)/Perl/bin/perl.exe
> -- Could NOT find PerlLibs
> --   PERL_EXECUTABLE:        C:/Program Files (x86)/Perl/bin/perl.exe
> --   PERL_INCLUDE_PATH:      PERL_INCLUDE_PATH-NOTFOUND
> --   PERL_LIBRARY:           PERL_LIBRARY-NOTFOUND
>
> It seems that it can locate perl (which is also in the PATH), but not
> its libs. Can I fix this?

Please have a look at FindPerlLibs.cmake and add some MESSAGE(STATUS ...) to 
find out what is going on exactly. Is it simply the version number which is 
missing ?

Alex


More information about the CMake mailing list