Because Perl is not included with Windows by default, I including Perl
in the source distribution of the project. This means that the Perl
executable is located in a directory below the root of the source tree.
So "${CMAKE_SOURCE_DIR}/<Path to Perl>" does correctly specify the
version of Perl to be used by this project on the Windows platform.
David Cole wrote:
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 <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> 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
[email protected] <mailto:[email protected]>
http://www.cmake.org/mailman/listinfo/cmake
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake