[cmake-developers] [CMake 0015626]: 3.3-rc2 segfault (regression)
Mantis Bug Tracker
mantis at public.kitware.com
Tue Jun 23 13:49:15 EDT 2015
The following issue has been SUBMITTED.
======================================================================
https://public.kitware.com/Bug/view.php?id=15626
======================================================================
Reported By: Andrew Fuller
Assigned To:
======================================================================
Project: CMake
Issue ID: 15626
Category: CMake
Reproducibility: always
Severity: crash
Priority: high
Status: new
======================================================================
Date Submitted: 2015-06-23 13:49 EDT
Last Modified: 2015-06-23 13:49 EDT
======================================================================
Summary: 3.3-rc2 segfault (regression)
Description:
Manipulating a target that was first created in a different directory branch
causes a segfault.
Steps to Reproduce:
1. Create the following CMake files:
$ tree
.
├── CMakeLists.txt
├── dirA
│ └── CMakeLists.txt
└── dirB
└── CMakeLists.txt
$ cat CMakeLists.txt
add_subdirectory( dirA )
add_subdirectory( dirB )
$ cat dirA/CMakeLists.txt
add_library( foo INTERFACE )
$ cat dirB/CMakeLists.txt
target_link_libraries( foo INTERFACE ${CMAKE_DL_LIBS} )
2. Configure
$ mkdir build && cd build && cmake ..
[...]
[1] 6691 segmentation fault (core dumped) cmake ..
Additional Information:
This works fine with CMake 3.2.1.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-06-23 13:49 Andrew Fuller New Issue
======================================================================
More information about the cmake-developers
mailing list