[cmake-developers] [CMake 0011469]: CMAKE_USER_MAKE_RULES_OVERRIDE with system checks goes into recursion and aborts

Mantis Bug Tracker mantis at public.kitware.com
Wed Nov 17 09:11:08 EST 2010


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=11469 
====================================================================== 
Reported By:                Vladislav Vaintroub
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11469
Category:                   CMake
Reproducibility:            always
Severity:                   block
Priority:                   urgent
Status:                     new
====================================================================== 
Date Submitted:             2010-11-17 09:11 EST
Last Modified:              2010-11-17 09:11 EST
====================================================================== 
Summary:                    CMAKE_USER_MAKE_RULES_OVERRIDE with system checks
goes into  recursion and aborts
Description: 
We (MySQL) use some system checks in CMAKE_USER_MAKE_RULES_OVERRIDE file -
header file existence, bitness etc.

It worked fine in 2.6.1 to 2.8.2, but it broke in 2.8.3. 

It looks like cmake would go into recursion, and break with "no current
directory"  when stack is exhausted.

Steps to Reproduce: 
I attach a sample project to demonstrate the behavior.
Basically, having just "CHECK_TYPE_SIZE" macro in CMAKE_USER_MAKE_RULES_OVERRIDE
file will cause the trouble, e.g file with contents:

MESSAGE("in rules.cmake")
INCLUDE(CheckTypeSize)
CHECK_TYPE_SIZE("void *" SIZEOF_VOIDP)

Additional Information: 
http://www.vtk.org/Bug/view.php?id=10902 might be the reason for breakage
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-11-17 09:11 Vladislav VaintroubNew Issue                                   

2010-11-17 09:11 Vladislav VaintroubFile Added: my_project.tar.gz               
    
======================================================================




More information about the cmake-developers mailing list