[cmake-developers] [CMake 0014016]: cmake segfaults with empty -DCMAKE_CXX_COMPILER

Mantis Bug Tracker mantis at public.kitware.com
Fri Mar 15 07:40:24 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14016 
====================================================================== 
Reported By:                Sylwester Arabas
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14016
Category:                   CMake
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-03-15 07:40 EDT
Last Modified:              2013-03-15 07:40 EDT
====================================================================== 
Summary:                    cmake segfaults with empty -DCMAKE_CXX_COMPILER
Description: 
Steps to reproduce below.
HTH,
Sylwester

Steps to Reproduce: 
$ cat CMakeLists.txt 
project(test)

$ cmake .
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/slayoo/Temp/cmake-test

$ cmake . -DCMAKE_CXX_COMPILER=
-- Configuring done
Segmentation fault

$ cmake --version
cmake version 2.8.9

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-03-15 07:40 Sylwester ArabasNew Issue                                    
======================================================================




More information about the cmake-developers mailing list