On 5/18/07, <b class="gmail_sendername">Alan W. Irwin</b> &lt;<a href="mailto:irwin@beluga.phys.uvic.ca">irwin@beluga.phys.uvic.ca</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 2007-05-18 11:00+0800 Clark J. Wang wrote:<br><br>&gt; In my Ubuntu Linux box, after INCLUDE(FindTCL) I get the following result:<br>&gt;<br>&gt; TCL_INCLUDE_PATH = /usr/include/tcl8.4<br>&gt; TCL_LIBRARY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= /usr/lib/libtcl8.4.so
<br>&gt;<br>&gt;<br>&gt; But in my Mac OS X 10.4 the result is:<br>&gt;<br>&gt; TCL_INCLUDE_PATH = /System/Library/Frameworks/Tcl.framework/Headers<br>&gt; TCL_LIBRARY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= /System/Library/Frameworks/tcl.framework<br>&gt;
<br>&gt; Actaully I want to use `/usr/include/tcl.h&#39; and `/usr/lib/libtcl.dylib&#39; in<br>&gt; my makefile. So how can I ask FindTCL to do that?<br><br>Set the environment variables CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH
<br>appropriately (see <a href="http://www.cmake.org/Wiki/CMake_Useful_Variables">http://www.cmake.org/Wiki/CMake_Useful_Variables</a>).</blockquote><div><br>Seems like the ENV vars does not work:<br><br> $ cat CMakeLists.txt
<br>INCLUDE(FindTCL)<br>MESSAGE(&quot;TCL_INCLUDE_PATH = ${TCL_INCLUDE_PATH}&quot;)<br>MESSAGE(&quot;TCL_LIBRARY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ${TCL_LIBRARY}&quot;)<br>$ cmake .<br>TCL_INCLUDE_PATH = /System/Library/Frameworks/Tcl.framework/Headers
<br>TCL_LIBRARY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = /System/Library/Frameworks/tcl.framework<br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: /Users/clark/tmp<br>$ CMAKE_LIBRARY_PATH=/usr/lib CMAKE_INCLUDE_PATH=/usr/include cmake .
<br>TCL_INCLUDE_PATH = /System/Library/Frameworks/Tcl.framework/Headers<br>TCL_LIBRARY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = /System/Library/Frameworks/tcl.framework<br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: /Users/clark/tmp
<br>$ <br><br>And I tried SET(CMAKE_FIND_FRAMEWORK &quot;NEVER&quot;) and SET(CMAKE_FIND_APPBUNDLE &quot;NEVER&quot;) before INCLUDE(FindTCL) but it did not work either.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Alan<br>__________________________<br>Alan W. Irwin<br><br>Astronomical research affiliation with Department of Physics and Astronomy,<br>University of Victoria (<a href="http://astrowww.phys.uvic.ca">astrowww.phys.uvic.ca
</a>).<br><br>Programming affiliations with the FreeEOS equation-of-state implementation<br>for stellar interiors (<a href="http://freeeos.sf.net">freeeos.sf.net</a>); PLplot scientific plotting software<br>package (<a href="http://plplot.org">
plplot.org</a>); the libLASi project (<a href="http://unifont.org/lasi">unifont.org/lasi</a>); the Loads of<br>Linux Links project (<a href="http://loll.sf.net">loll.sf.net</a>); and the Linux Brochure Project<br>(<a href="http://lbproject.sf.net">
lbproject.sf.net</a>).<br>__________________________<br><br>Linux-powered Science<br>__________________________<br></blockquote></div><br>