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">&lt;<a href="mailto:wfspotz@sandia.gov">wfspotz@sandia.gov</a>&gt;</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&#39;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>
 &nbsp;FIND_PROGRAM(PYTHON_EXECUTABLE python)<br>
 &nbsp;MESSAGE(&quot;PYTHON_EXECUTABLE is &quot; ${PYTHON_EXECUTABLE})<br>
 &nbsp;FIND_PROGRAM(SWIG_EXECUTABLE swig)<br>
 &nbsp;MESSAGE(&quot;SWIG_EXECUTABLE is &quot; ${SWIG_EXECUTABLE})<br>
<br>
On my system, the following executables exist:<br>
<br>
 &nbsp;/sw/bin/python<br>
 &nbsp;/usr/bin/python<br>
 &nbsp;/sw/bin/swig<br>
 &nbsp;/usr/bin/swig<br>
<br>
and /sw/bin comes first in my PATH environment variable. &nbsp;I would<br>
expect to get the same paths to both python and swig, but I don&#39;t.<br>
Instead, I get the output<br>
<br>
 &nbsp;PYTHON_EXECUTABLE is /usr/bin/python<br>
 &nbsp;SWIG_EXECUTABLE is /sw/bin/swig<br>
<br>
I make sure to delete my cache file before running cmake, so I don&#39;t<br>
think it is a caching issue. &nbsp;Why else might it behave like this?<br>
<br>
Thanks<br>
<br>
** Bill Spotz &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;**<br>
** Sandia National Laboratories &nbsp;Voice: (505)845-0170 &nbsp; &nbsp; &nbsp;**<br>
** P.O. Box 5800 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fax: &nbsp; (505)284-0154 &nbsp; &nbsp; &nbsp;**<br>
** Albuquerque, NM 87185-0370 &nbsp; &nbsp;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>