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      
             
======================================================================

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to