I think the problem here was that you were giving &quot;${CMAKE_SOURCE_DIR}/&lt;Path to Perl&gt;&quot; where you should have had &quot;&lt;Path to Perl&gt;&quot;<br><br><div>CMAKE_SOURCE_DIR is your source tree. Is perl really under your source tree?<br>
<div><br></div><div><br><div class="gmail_quote">On Thu, Nov 27, 2008 at 4:43 PM, Tron Thomas <span dir="ltr">&lt;<a href="mailto:tron.thomas@verizon.net">tron.thomas@verizon.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



  

<div 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&#39;t know if it needs to include the path to the
actual executable.<div class="Ih2E3d"><br>
<br>
Alexander Neundorf wrote:
<blockquote type="cite">
  <pre>On Thursday 27 November 2008, Tron Thomas wrote:
  </pre>
  <blockquote type="cite">
    <pre>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>Please show the cmake code, it should work.

Alex


  </pre>
</blockquote>
<br>
</div></div>


<br>_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div></div>