On 2012-08-18 01:11:57 +0000, Clifford Yapp said:

On Fri, Aug 17, 2012 at 8:52 PM, Randolph M. Fritz <rfr...@lbl.gov> wrote:

Meantime, what would it take to get some Apple-specific support added to
FindX11.cmake?  If I did a version with some changes, would Kitware be
interested in picking it up?  It seems to me that I'm not the only one
having problems.

Not sure who's maintaining FindX11.cmake at Kitware - they may be
looking for a maintainer.  If your changes can be under the same
license as CMake itself you could post patches - I suspect a number of
people besides BRL-CAD customize FindX11.cmake and would be
interested.

What strikes me about FindX11.cmake is the way the script will grab multiple X11 library files from anywhere, with no assurance that the files will be compatible. Since each find_path and find_library is an independent command we get the behavior I observed, where files are selected from random locations without regard to compatiblity. Hence, a copy of Radiance built on my system without my FindX11 changes will not run anywhere else and may not even run on my system.

I ended up writing code which specified /usr/X11 with NO_DEFAULT_PATH to get the behavior shut off. I suspect similar code which specified /usr/X11 and /usr/X11R6 would work for the Apple/XQuartz X server on every version of Mac OS. Personally, I would prefer that the code use the native server unless an alternative was specified.

What problems did your solutions address? I've skimmed them, but am not sure I understand them. I'd also be interested in hearing from anyone else who has done this, and even people who have done it on Windows systems.

--
Randolph M. Fritz • rfr...@lbl.gov
Environmental Energy Technologies Division • Lawrence Berkeley Labs


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to