[CMake] FindTCL.cmake has a problem?
Michael Hertling
mhertling at online.de
Wed Feb 2 07:57:36 EST 2011
On 01/31/2011 05:26 PM, kent williams wrote:
> I found this out on a RHEL6 machine, which comes stock with tclsh and
> wish but without the C header files for development.
>
> FindTCL.cmake sets TCL_FOUND, even though
> TCL_INCLUDE_PATH:PATH=TCL_INCLUDE_PATH-NOTFOUND
>
> Imagine the hilarity that ensues!
The FindTCL module from CMake 2.8.3 contains the line
>> FIND_PACKAGE_HANDLE_STANDARD_ARGS(TCL DEFAULT_MSG TCL_LIBRARY TCL_INCLUDE_PATH)
so TCL_FOUND shouldn't come out as TRUE if TCL_INCLUDE_PATH isn't TRUE
also. Is the questionable FindTCL module the same as the official one?
Could you provide the complete output of a FIND_PACKAGE(TCL) resulting
in TCL_FOUND==TRUE and TCL_INCLUDE_PATH==FALSE from a clean build?
Regards,
Michael
More information about the CMake
mailing list