[cmake-developers] [CMake 0014357]: Defining an override macro/function of add_library more than once causes a segmentation fault.
Mantis Bug Tracker
mantis at public.kitware.com
Wed Aug 14 15:28:47 EDT 2013
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=14357
======================================================================
Reported By: Jason Howlett
Assigned To:
======================================================================
Project: CMake
Issue ID: 14357
Category: CMake
Reproducibility: always
Severity: crash
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-08-14 15:28 EDT
Last Modified: 2013-08-14 15:28 EDT
======================================================================
Summary: Defining an override macro/function of add_library
more than once causes a segmentation fault.
Description:
If a macro or function override of add_library is created in more than one
scope, either directly or through an include of a common file, cmake seg faults
during calls to add_library in the second scope. The call to _add_library in the
override resolves to the second 'instance' of the add_library override,
resulting in an infinite recursion.
Steps to Reproduce:
Uncompress the attached test project, go to the build directory, and run cmake
..
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-08-14 15:28 Jason Howlett New Issue
2013-08-14 15:28 Jason Howlett File Added: cmake_crash_test.zip
======================================================================
More information about the cmake-developers
mailing list