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

Bill Hoffman bill.hoffman at kitware.com
Thu May 17 23:30:01 EDT 2007


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?
You could try this:

set(CMAKE_FIND_FRAMEWORK NEVER)
include(FindTCL)


-Bill



More information about the CMake mailing list