[CMake] Module FindTCL behaves differently on Linux and Mac OS X

Alan W. Irwin irwin at beluga.phys.uvic.ca
Thu May 17 23:09:37 EDT 2007


On 2007-05-18 11:00+0800 Clark J. Wang wrote:

> In my Ubuntu Linux box, after INCLUDE(FindTCL) I get the following result:
>
> TCL_INCLUDE_PATH = /usr/include/tcl8.4
> TCL_LIBRARY      = /usr/lib/libtcl8.4.so
>
>
> But in my Mac OS X 10.4 the result is:
>
> TCL_INCLUDE_PATH = /System/Library/Frameworks/Tcl.framework/Headers
> TCL_LIBRARY      = /System/Library/Frameworks/tcl.framework
>
> Actaully I want to use `/usr/include/tcl.h' and `/usr/lib/libtcl.dylib' in
> my makefile. So how can I ask FindTCL to do that?

Set the environment variables CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH
appropriately (see http://www.cmake.org/Wiki/CMake_Useful_Variables).

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________


More information about the CMake mailing list