Hello, I am chiming in very late in this discussion (we had a very long weekend off in my little country at the sea and I did not feel very motivated to read my e-mail for a variety of reasons), but my idea is this: Rather than let CMake find out everything it needs to about what version of Tcl to use, why not let a small Tcl script do the job? Tcl offers enough introspection to make that happen.
Here is a sketch: - The current FindTcl.cmake file is fine, as far as looking for tclsh is concerned (possibly modulo a specific tclsh that you want used). - It can then start that particular tclsh with a script that will report what libraries that tclsh shell uses (I have something of that kind already, though it will need to be adapted for this purpose) Regards, Arjen On 2010-05-13 10:26, Werner Smekal wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > >> In my opinion, all possible versions should be searched for within the >> installation prefix zone. >> >> Then all possible versions should be searched for in other zones. >> >> And it should be possible (and easy) to prevent that last step. > > You can easily do that by providing your own FindTCL.cmake. You can > prevent that system directories are searched. If you found nothing you > can then include them. Most of these Findxxx.cmake modules are user > provided (although FindTCL.cmake is provided by kitware, the makers of > cmake). But it's easy to change the modules according to ones needs and > then let cmake use them instead of the standard one. > > Or, if you think this is really a major flaw (which I don't think, since > the module will work for 99% of all developers), you can submit a bug > report to the cmake mailing list. > > Regards, > Werner > >> -Geoff >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Plplot-devel mailing list >> Plplot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/plplot-devel > > > - -- > Dr. Werner Smekal > Institut fuer Angewandte Physik > Technische Universitaet Wien > Wiedner Hauptstr 8-10/134 > A-1040 Wien > Austria > DVR-Nr: 0005886 > > email: sme...@iap.tuwien.ac.at (GPG: EDCAF4A79) > web: http://www.iap.tuwien.ac.at/~smekal > phone: +43-(0)1-58801-13463 (office) > +43-(0)1-58801-13469 (laboratory) > fax: +43-(0)1-58801-13499 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQEcBAEBAgAGBQJL67eyAAoJEG1QQcXtyvSn6VkH/3+bv1bdNndmciJYUf5XfnQ+ > RRwXOaifMVUZFQEfzohoIgLSRkHpLiA+rw1zIBmF9ssrVeLUX/6DNZcG4upwVGOs > 32XCvP2auMkDqoZ1g8pE9RPaOBOmXuj7sdDFAN2Qz//PAvh573zZK2rbGcbhXoR+ > ygOcmZH0r7zmvD/W7UO7IDGyqtF/ZW/p67ClhyQt0hFgM5ZnBAL0+AkGyjuIr6Dm > w+fVOzrKWjak3IpusaCDwGtMOgnQ5oasLbkySlKEeADLbMjDSUxyoWdIfgCswMn+ > 66aEWL6KDRdZ9h1+l4DJQyIa7qdJwWYLLbzwhqxp+jI5DyWVZ0b8BhkDcMlxM3k= > =ryIs > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------------ > > _______________________________________________ > Plplot-devel mailing list > Plplot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/plplot-devel > ------------------------------------------------------------------------------ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel