[cmake-developers] [CMake 0011731]: Issue with CheckTypeSize test

Mantis Bug Tracker mantis at public.kitware.com
Thu Jan 20 04:40:29 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11731 
====================================================================== 
Reported By:                Johannes Brunen
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11731
Category:                   CMake
Reproducibility:            N/A
Severity:                   major
Priority:                   low
Status:                     new
====================================================================== 
Date Submitted:             2011-01-20 04:40 EST
Last Modified:              2011-01-20 04:40 EST
====================================================================== 
Summary:                    Issue with CheckTypeSize test
Description: 
Hello,

after switching from CMake version 2.8.0 to 2.8.3 I ran into the following
issue. I have a script named 'FindComLibs1.0.cmake' which does contain the
following statement:

include(CheckTypeSize)
check_type_size("void*" _comlibs1.0_void_ptr_size BUILTIN_TYPES_ONLY)

running a CMake project containing a find_package call to this script does
produce the following error:

-- Check size of void*
CMake Error: Unknown extension ".0_void_ptr_size.c" for file
"E:/prod_xxx_/Build32/caddy/CMakeFiles/CheckTypeSize/_comlibs1.0_void_ptr_size.c".
TRY_COMPILE only works for enabled languages.
Currently enabled languages are: C CXX RC
See PROJECT command for help enabling other languages.
-- Check size of void* - failed

I think that the determination of the file extension is wrongly implemented.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-20 04:40 Johannes BrunenNew Issue                                    
======================================================================




More information about the cmake-developers mailing list