[CMake] Can't configure Perl on Windows

Alexander Neundorf a.neundorf-work at gmx.net
Thu Nov 27 17:55:07 EST 2008


On Thursday 27 November 2008, Tron Thomas wrote:
>  Since Perl is not typically included with Windows, I am including the
> Windows version in the source tree.  The relevant CMake code goes something
> like this:
>
>  cmake_minimum_required(VERSION 2.6)
>
>  project(MyProject)
>
>  enable_testing()
>
>  find_package(Perl REQUIRED PATHS ${CMAKE_SOURCE_DIR}/<Path to Perl>)

Try without the "PATHS ${CMAKE_SOURCE_DIR}/<Path to Perl>" arguments, and if 
perl is not found, set the environment variable CMAKE_PREFIX_PATH to the root 
directory of the perl installation (setting the cmake variable 
CMAKE_PREFIX_PATH should also work).
Let me know if this helps.

Alex


More information about the CMake mailing list