MantisBT - CMake
View Issue Details
0013323CMakeCMakepublic2012-06-20 08:022012-11-05 14:33
Mariusz Plucinski 
Brad King 
normalminoralways
closedfixed 
x64Windows7 x64
CMake 2.8.8 
CMake 2.8.9CMake 2.8.9 
0013323: CMake crashes if language is set inproperly.
Found it during experimenting with adding new language support. CMake crashes when there is a problem with source file language property.
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.
Expected result:

Getting an error message about missing variable: CMAKE_asd_LINK_EXECUTABLE

Actual result:

Application crash (Access violation).

Attached patch fixes an error.
No tags attached.
patch cmake_cmLocalGenerator.patch (764) 2012-06-20 08:02
https://public.kitware.com/Bug/file/4367/cmake_cmLocalGenerator.patch
Issue History
2012-06-20 08:02Mariusz PlucinskiNew Issue
2012-06-20 08:02Mariusz PlucinskiFile Added: cmake_cmLocalGenerator.patch
2012-06-20 09:10Brad KingNote Added: 0029765
2012-06-20 09:10Brad KingAssigned To => Brad King
2012-06-20 09:10Brad KingStatusnew => resolved
2012-06-20 09:10Brad KingResolutionopen => fixed
2012-06-20 09:10Brad KingFixed in Version => CMake 2.8.9
2012-06-20 09:10Brad KingTarget Version => CMake 2.8.9
2012-11-05 14:33David ColeNote Added: 0031455
2012-11-05 14:33David ColeStatusresolved => closed

Notes
(0029765)
Brad King   
2012-06-20 09:10   
Applied, thanks!

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2c2fbaf0 [^]
(0031455)
David Cole   
2012-11-05 14:33   
Closing resolved issues that have not been updated in more than 4 months.