[cmake-developers] [CMake 0013323]: CMake crashes if language is set inproperly.

Mantis Bug Tracker mantis at public.kitware.com
Wed Jun 20 08:02:01 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13323 
====================================================================== 
Reported By:                Mariusz Plucinski
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13323
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-06-20 08:02 EDT
Last Modified:              2012-06-20 08:02 EDT
====================================================================== 
Summary:                    CMake crashes if language is set inproperly.
Description: 
Found it during experimenting with adding new language support. CMake crashes
when there is a problem with source file language property.

Steps to Reproduce: 
1. Create CMakeLists.txt and put the following code:

    project(BugTest)
    cmake_minimum_required(VERSION 2.8)
    add_executable(Foo Bar.asd)
    set_target_properties(Foo PROPERTIES LINKER_LANGUAGE asd)

2. Create empty Bar.asd file
3. Run "cmake ." under Windows, using Visual Studio 10 generator.

Additional Information: 
Expected result:

Getting an error message about missing variable: CMAKE_asd_LINK_EXECUTABLE

Actual result:

Application crash (Access violation).

Attached patch fixes an error.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-06-20 08:02 Mariusz PlucinskiNew Issue                                    
2012-06-20 08:02 Mariusz PlucinskiFile Added: cmake_cmLocalGenerator.patch      
             
======================================================================




More information about the cmake-developers mailing list