Is /sw/bin/python a symlink to /usr/bin/python?<br><br><div><br><div class="gmail_quote">On Fri, Feb 6, 2009 at 12:39 PM, Bill Spotz <span dir="ltr"><<a href="mailto:wfspotz@sandia.gov">wfspotz@sandia.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>
<br>
Because FIND_PACKAGE(PythonInterp) wasn't behaving exactly the way I<br>
wanted it to, I was playing around with the following (at the very<br>
beginning of my CMakeLists.txt file):<br>
<br>
FIND_PROGRAM(PYTHON_EXECUTABLE python)<br>
MESSAGE("PYTHON_EXECUTABLE is " ${PYTHON_EXECUTABLE})<br>
FIND_PROGRAM(SWIG_EXECUTABLE swig)<br>
MESSAGE("SWIG_EXECUTABLE is " ${SWIG_EXECUTABLE})<br>
<br>
On my system, the following executables exist:<br>
<br>
/sw/bin/python<br>
/usr/bin/python<br>
/sw/bin/swig<br>
/usr/bin/swig<br>
<br>
and /sw/bin comes first in my PATH environment variable. I would<br>
expect to get the same paths to both python and swig, but I don't.<br>
Instead, I get the output<br>
<br>
PYTHON_EXECUTABLE is /usr/bin/python<br>
SWIG_EXECUTABLE is /sw/bin/swig<br>
<br>
I make sure to delete my cache file before running cmake, so I don't<br>
think it is a caching issue. Why else might it behave like this?<br>
<br>
Thanks<br>
<br>
** Bill Spotz **<br>
** Sandia National Laboratories Voice: (505)845-0170 **<br>
** P.O. Box 5800 Fax: (505)284-0154 **<br>
** Albuquerque, NM 87185-0370 Email: <a href="mailto:wfspotz@sandia.gov" target="_blank">wfspotz@sandia.gov</a> **<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>