MantisBT - CMake
View Issue Details
0006243CMakeModulespublic2008-01-14 21:372008-10-01 16:10
Brandon Van Every 
Bill Hoffman 
normalminoralways
closedfixed 
 
 
0006243: FindPerlLibs should search harder for Perl
FindPerlLibs only uses FIND_PROGRAM(PERL_EXECUTABLE perl ) to search for Perl. FindPerl is much more aggressive about trying to find Perl; it searches HKEY on Windows, and also Cygwin paths. If FindPerl is used before FindPerlLibs, there is no problem, as FindPerl will correctly set PERL_EXECUTABLE and the value will be retained in the cache. However, FindPerlLibs may be used in isolation, since it does determine PERL_EXECUTABLE.

I would suggest either: (1) putting include(FindPerl) inside of FindPerlLibs, or (2) removing FIND_PROGRAM from FindPerlLibs, and acting upon the value of PERL_EXECUTABLE.
No tags attached.
Issue History
2008-01-14 21:37Brandon Van EveryNew Issue
2008-01-15 11:32Bill HoffmanStatusnew => closed
2008-01-15 11:32Bill HoffmanResolutionopen => no change required
2008-01-15 14:21Bill HoffmanNote Added: 0010156
2008-01-15 14:21Bill HoffmanStatusclosed => acknowledged
2008-01-15 14:21Bill HoffmanResolutionno change required => open
2008-02-15 10:43Bill HoffmanStatusacknowledged => assigned
2008-02-15 10:43Bill HoffmanAssigned To => Bill Hoffman
2008-10-01 16:10Bill HoffmanStatusassigned => closed
2008-10-01 16:10Bill HoffmanNote Added: 0013680
2008-10-01 16:10Bill HoffmanResolutionopen => fixed

Notes
(0010156)
Bill Hoffman   
2008-01-15 14:21   
Opps, did not read it that close. An include of findPerl would be better. I thought this was the other bug about FindPerl doing find_program twice... :)
(0013680)
Bill Hoffman   
2008-10-01 16:10   
$ cvs commit -m "ENH: find perl with FindPerl not find_program, bug: 6243" FindPerlLibs.cmake
Committer: Bill Hoffman <bill.hoffman@kitware.com>
/cvsroot/CMake/CMake/Modules/FindPerlLibs.cmake,v <-- FindPerlLibs.cmake
new revision: 1.9; previous revision: 1.8

hoffman@CORRIN ~/My Builds/CMake/Modules