[CMake] Can't configure Perl on Windows
David Cole
david.cole at kitware.com
Fri Nov 28 10:18:54 EST 2008
I think the problem here was that you were giving "${CMAKE_SOURCE_DIR}/<Path
to Perl>" where you should have had "<Path to Perl>"
CMAKE_SOURCE_DIR is your source tree. Is perl really under your source tree?
On Thu, Nov 27, 2008 at 4:43 PM, Tron Thomas <tron.thomas at verizon.net>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>)
>
> 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
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081128/289e31e8/attachment.htm>
More information about the CMake
mailing list