View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015999CMakeCMakepublic2016-03-02 04:102016-06-10 14:21
ReporterAntonio 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
Platformx64OSWindowsOS Version7
Product VersionCMake 3.4.1 
Target VersionCMake 3.6Fixed in VersionCMake 3.6 
Summary0015999: CMake will crash if project command is used in the toolchain file
DescriptionIf the "project" command is used in a toolchain file, cmake crashes (also cmake-gui crashes consequently).

Found out while trying to use:
find_package(LLVM REQUIRED CONFIG)
in a toolchain file, and incurred in this problem:
http://stackoverflow.com/questions/12264299/cmake-on-linux-target-platform-does-not-support-dynamic-linking [^]
Steps To ReproduceExtremely easy, simply configure a project with a toolchain containing:
project(xxx)

In the attachment a dummy project which allows to reproduce the problem. Also the build directory (output before the crash) is included.
TagsNo tags attached.
Attached Fileszip file icon test.zip [^] (2,122 bytes) 2016-03-02 04:10

 Relationships

  Notes
(0040642)
Brad King (manager)
2016-03-07 14:08

Thanks. This should fix it:

 Diagnose recursive project/enable_language without crashing
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=72e0dc58 [^]

(0040643)
Brad King (manager)
2016-03-07 14:10

FYI, a toolchain file is meant to set machine-local information. It shouldn't need to find anything.
(0041235)
Kitware Robot (administrator)
2016-06-10 14:21

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2016-03-02 04:10 Antonio New Issue
2016-03-02 04:10 Antonio File Added: test.zip
2016-03-07 14:08 Brad King Note Added: 0040642
2016-03-07 14:08 Brad King Assigned To => Brad King
2016-03-07 14:08 Brad King Status new => resolved
2016-03-07 14:08 Brad King Resolution open => fixed
2016-03-07 14:08 Brad King Fixed in Version => CMake 3.6
2016-03-07 14:08 Brad King Target Version => CMake 3.6
2016-03-07 14:10 Brad King Note Added: 0040643
2016-06-10 14:21 Kitware Robot Note Added: 0041235
2016-06-10 14:21 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team