View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015802CMakeCMakepublic2015-10-20 03:302016-03-07 09:12
ReporterLukas Pioch 
Assigned ToStephen Kelly 
PriorityurgentSeveritycrashReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake 3.4 
Target VersionCMake 3.4Fixed in VersionCMake 3.4 
Summary0015802: CMake crashes in creating build files for JsonCpp
DescriptionCMake 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.
Steps To Reproduce1) 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 .
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0039655)
Brad King (manager)
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 (manager)
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 (manager)
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 (manager)
2015-10-21 09:10

I've queued this for merge to 'release' for 3.4.0-rc2.
(0039669)
Lukas Pioch (reporter)
2015-10-21 10:11

Thank you very much for that quick fix.
(0039689)
Stephen Kelly (developer)
2015-10-27 17:15

You're welcome, and thanks for testing the RC.
(0040628)
Robert Maynard (manager)
2016-03-07 09:12

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2015-10-20 03:30 Lukas Pioch New Issue
2015-10-20 09:26 Brad King Note Added: 0039655
2015-10-20 09:26 Brad King Target Version => CMake 3.4
2015-10-20 10:51 Brad King Assigned To => Stephen Kelly
2015-10-20 10:51 Brad King Status new => assigned
2015-10-20 10:52 Brad King Note Added: 0039656
2015-10-20 10:53 Brad King Priority normal => urgent
2015-10-20 10:53 Brad King OS 7 =>
2015-10-20 10:53 Brad King Platform Windows =>
2015-10-20 10:53 Brad King Product Version => CMake 3.4
2015-10-21 09:09 Brad King Note Added: 0039667
2015-10-21 09:10 Brad King Note Added: 0039668
2015-10-21 09:10 Brad King Status assigned => resolved
2015-10-21 09:10 Brad King Resolution open => fixed
2015-10-21 09:10 Brad King Fixed in Version => CMake 3.4
2015-10-21 10:11 Lukas Pioch Note Added: 0039669
2015-10-27 17:15 Stephen Kelly Note Added: 0039689
2016-03-07 09:12 Robert Maynard Note Added: 0040628
2016-03-07 09:12 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team