MantisBT - CMake
View Issue Details
0015802CMakeCMakepublic2015-10-20 03:302016-03-07 09:12
Lukas Pioch 
Stephen Kelly 
urgentcrashalways
closedfixed 
CMake 3.4 
CMake 3.4CMake 3.4 
0015802: CMake crashes in creating build files for JsonCpp
CMake 3.4 crashes in creating the build files for a project named JsonCpp on a old commit. The current master of JsonCpp builds.
Tested the steps with the current git version of CMake and the problem still exists.

On a older version like CMake 3.2 no crash occurs.
1) Clone JsonCpp:
git clone https://github.com/open-source-parsers/jsoncpp.git [^]

2) Checkout older commit in a other branch:
git checkout -b cmake_test 81cf237

3) Run:
cmake .
No tags attached.
Issue History
2015-10-20 03:30Lukas PiochNew Issue
2015-10-20 09:26Brad KingNote Added: 0039655
2015-10-20 09:26Brad KingTarget Version => CMake 3.4
2015-10-20 10:51Brad KingAssigned To => Stephen Kelly
2015-10-20 10:51Brad KingStatusnew => assigned
2015-10-20 10:52Brad KingNote Added: 0039656
2015-10-20 10:53Brad KingPrioritynormal => urgent
2015-10-20 10:53Brad KingOS7 =>
2015-10-20 10:53Brad KingPlatformWindows =>
2015-10-20 10:53Brad KingProduct Version => CMake 3.4
2015-10-21 09:09Brad KingNote Added: 0039667
2015-10-21 09:10Brad KingNote Added: 0039668
2015-10-21 09:10Brad KingStatusassigned => resolved
2015-10-21 09:10Brad KingResolutionopen => fixed
2015-10-21 09:10Brad KingFixed in Version => CMake 3.4
2015-10-21 10:11Lukas PiochNote Added: 0039669
2015-10-27 17:15Stephen KellyNote Added: 0039689
2016-03-07 09:12Robert MaynardNote Added: 0040628
2016-03-07 09:12Robert MaynardStatusresolved => closed

Notes
(0039655)
Brad King   
2015-10-20 09:26   
Thanks for trying the release candidate. I've narrowed the test case down to:

cmake_minimum_required(VERSION 3.0)
project(Issue15802 NONE)
set(x 1)
if(0)
elseif("x" STREQUAL "y")
endif()
(0039656)
Brad King   
2015-10-20 10:52   
Bisects to a change made just after post-3.3 development opened:

 cmMakefile: Add API for elseif to create backtrace.
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b68f2ea8 [^]
(0039667)
Brad King   
2015-10-21 09:09   
Fixed:

cmIfCommand: Issue CMP0054 warning with appropriate context
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d6a03b47 [^]
(0039668)
Brad King   
2015-10-21 09:10   
I've queued this for merge to 'release' for 3.4.0-rc2.
(0039669)
Lukas Pioch   
2015-10-21 10:11   
Thank you very much for that quick fix.
(0039689)
Stephen Kelly   
2015-10-27 17:15   
You're welcome, and thanks for testing the RC.
(0040628)
Robert Maynard   
2016-03-07 09:12   
Closing resolved issues that have not been updated in more than 4 months.