[CMake] Can't configure Perl on Windows
Tron Thomas
tron.thomas at verizon.net
Thu Nov 27 18:33:11 EST 2008
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'm hoping this proves my configuration will
work without Cygwin.
Alexander Neundorf wrote:
> 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 and executes this (which then find cygwin
> first).
> With your previous code it switched to "config-mode" and was searching for a
> PerlConfig.cmake, which it didn't find.
>
> So, if you want cmake to find a specific version of something, set your
> CMAKE_PREFIX_PATH so that it contains the root directory of that software.
> The directories in CMAKE_PREFIX_PATH will be searched first.
> (works both as an environment variable as well as a cmake variable).
>
> Alex
>
>
>
More information about the CMake
mailing list