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}/" does correctly specify the
version of Perl to be used by
I think the problem here was that you were giving "${CMAKE_SOURCE_DIR}/" where you should have had ""
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]>wrote:
> Since Perl is not typically included with
Okay, so even though CMake succeeded on my system without setting
CMAKE_PREFIX_PATH, I set it anyway. I then deleted all the CMake
generated file, and ran CMake again. This time CMake said that it found
Perl in the location I wanted CMake to find it, and the build
configuration succeeded. I'
On Friday 28 November 2008, Tron Thomas wrote:
> When I remove the PATHS entry from the find_library library, CMake
> succeeds. This is because I have Cygwin installed, and CMake finds the
Hmm. Mainly it succeeds because now it defaults to the "module-mode", i.e. it
searches for a FindPerl.cmake
When I remove the PATHS entry from the find_library library, CMake
succeeds. This is because I have Cygwin installed, and CMake finds the
perl executable in the Cygwin installation. Cygwin is not required for
the project I'm trying to develop, and I don't want to force someone to
install it f
On Thursday 27 November 2008, Tron Thomas 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()
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}/)
The r
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
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 u