[Cmake] Problems finding programs on FreeBSD

Andy Cedilnik andy.cedilnik at kitware.com
Fri, 19 Mar 2004 09:50:21 -0500


Hi Richard,

Here is the problem, system may have several alternatives for tcl/tk but
one preferred one. We should use that one.

The solution to your problem of broken OS distributions such as (did you
say) FreeBSD is to not just blindly find an executable tclsh but
actually run it with a simple tcl script. CMake has all mechanisms for
that, somebody just have to sit down and write it.

The script could be something like:

#!/usr/bin/tclsh
puts "TCL version [info tclversion]"
exit

You can then verify in CMake all sorts of things, including, if the
tclsh actually works.

			Andy

On Fri, 2004-03-19 at 09:33, Richard Wackerbarth wrote: 
> I agree that it is a dumb idea. However, I don't see any particular 
> down-side to putting it last.
> The versions that ARE listed should all be stable. We would grab the 
> latest one that is installed.
> 
> Putting it last would be far simpler that actually building and running 
> a test to make sure that tclsh actually runs.
> 
> But, we SHOULD do one of them. (Change the order OR run a test)