[cmake-developers] [CMake 0015999]: CMake will crash if project command is used in the toolchain file

Mantis Bug Tracker mantis at public.kitware.com
Wed Mar 2 04:10:27 EST 2016


The following issue has been SUBMITTED. 
====================================================================== 
https://cmake.org/Bug/view.php?id=15999 
====================================================================== 
Reported By:                Antonio
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15999
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-03-02 04:10 EST
Last Modified:              2016-03-02 04:10 EST
====================================================================== 
Summary:                    CMake will crash if project command is used in the
toolchain file
Description: 
If 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 Reproduce: 
Extremely 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.
====================================================================== 

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



More information about the cmake-developers mailing list