I am running into issues building plplot because some requirements for desired bindings are in non-standard locations on my systems. E.g., python on my systems is python2.4, with relatively limited add on modules, and python2.6 is the less old v2.6 with more modules which I want to have plplot
use. (Yes, I should make python2.6, or better 2.8 the default, but that is a different kettle of fish).
I have seen other people having similar issues (e.g. http://cmake.3232098.n2.nabble.com/CMAKE-LIBRARY-PATH-appears-not-to-work-properly-for-finding-libtcl-tt5044674.html#a5066554\)
I have not looked at the Find_XXX code, but will concede that it is doing complicated stuff, and while what it does is wrong for some purposes , it is not clear that it is always (or even mostly) wrong. And changing its behaviour, even if correct for some purposes, might foul up other uses.
Is it possible to just add addition CMake variables so the person compiling can specify exactly which perl, tcl, assorted libraries, etc they wish to
use for the build. If nothing specified, go with the assorted Find_XXX routines, which are fine for the most general cases, but allow me to override
when I know the Find_XXX routines are not getting good results in my environment. It's a fair number of variables to add, but should mostly be
pretty simple, and allow for lots of flexibility w/out making it harder for users in the more normal cases.