<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Since Perl is not typically included with Windows, I am including the
Windows version in the source tree.&nbsp; The relevant CMake code goes
something like this:<br>
<br>
cmake_minimum_required(VERSION 2.6)<br>
<br>
project(MyProject)<br>
<br>
enable_testing()<br>
<br>
find_package(Perl REQUIRED PATHS ${CMAKE_SOURCE_DIR}/&lt;Path to
Perl&gt;)<br>
<br>
The &lt;Path to Perl&gt; refers to the root directory of the Perl
installation (i.e. the directory that contains the bin, lib, etc.
subdirectories).&nbsp; I don't know if it needs to include the path to the
actual executable.<br>
<br>
Alexander Neundorf wrote:
<blockquote cite="mid:200811272132.58254.a.neundorf-work@gmx.net"
 type="cite">
  <pre wrap="">On Thursday 27 November 2008, Tron Thomas wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I am trying to configure a CMake project which requires Perl for
building on Windows.  I have added the find_package command specifying
that Perl is required and providing the path for where the Perl binaries
are located.  Despite this, I get output like the following when trying
to configure using CMake:

CMake Error at CMakeLists.txt:19 (find_package):

 Could not find a configuration file for package Perl.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Please show the cmake code, it should work.

Alex


  </pre>
</blockquote>
<br>
</body>
</html>