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>)

The <Path to Perl> refers to the root directory of the Perl installation (i.e. the directory that contains the bin, lib, etc. subdirectories).  I don't know if it needs to include the path to the actual executable.

Alexander Neundorf wrote:
On Thursday 27 November 2008, Tron Thomas wrote:
  
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.
    

Please show the cmake code, it should work.

Alex


  

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to