[cmake-developers] [CMake 0014608]: segmentation fault when "export(TARGETS nonexistenttarget FILE somefile.cmake")
Mantis Bug Tracker
mantis at public.kitware.com
Fri Nov 29 10:51:44 EST 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14608
======================================================================
Reported By: Erik Sjölund
Assigned To:
======================================================================
Project: CMake
Issue ID: 14608
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-11-29 10:51 EST
Last Modified: 2013-11-29 10:51 EST
======================================================================
Summary: segmentation fault when "export(TARGETS
nonexistenttarget FILE somefile.cmake")
Description:
If "foobar" is not a target, this CMakeLists.txt content triggers a segmentation
fault:
export(TARGETS foobar FILE somefile.cmake)
The segmentation fault happens for the nighly build
cmake-2.8.12.20131128-ga13cc-Linux-i386 but not for cmake 2.8.11.2 where instead
an error message is shown.
Steps to Reproduce:
user at ubuntu:/tmp$ uname -m
x86_64
user at ubuntu:/tmp$ cat /etc/issue
Ubuntu 13.10 \n \l
user at ubuntu:/tmp$ cat /tmp/CMakeLists.txt
cmake_minimum_required(VERSION 2.8.9 FATAL_ERROR)
export(TARGETS foobar FILE somefile.cmake)
user at ubuntu:/tmp$ cmake --version
cmake version 2.8.11.2
user at ubuntu:/tmp$ dir=`mktemp -d` ; cd $dir
user at ubuntu:/tmp/tmp.Q8C5VD8vgw$ cmake /tmp
CMake Error at CMakeLists.txt:2 (export):
export given target "foobar" which is not built by this project.
-- Configuring incomplete, errors occurred!
user at ubuntu:/tmp/tmp.Q8C5VD8vgw$ dir=`mktemp -d` ; cd $dir
user at ubuntu:/tmp/tmp.NdOyHKvLMl$
~/cmake/cmake-2.8.12.20131128-ga13cc-Linux-i386/bin/cmake /tmp
-- Configuring done
Segmentation fault (core dumped)
user at ubuntu:/tmp/tmp.NdOyHKvLMl$
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-11-29 10:51 Erik Sjölund New Issue
======================================================================
More information about the cmake-developers
mailing list