The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=14031 ====================================================================== Reported By: Jay Sistar Assigned To: ====================================================================== Project: CMake Issue ID: 14031 Category: CMake Reproducibility: always Severity: crash Priority: normal Status: new ====================================================================== Date Submitted: 2013-03-20 07:56 EDT Last Modified: 2013-03-20 07:56 EDT ====================================================================== Summary: export() segfault when target list contains undefined target Description: When using the export() command to export targets for use in another CMake project, if the list of targets passed-in contains a target that does not exists, then an error message should be displayed.
Instead of an error message, CMake 2.8.10.2 on OSX crashes with a segfault. Steps to Reproduce: Create a CMakeLists.txt file with 1 or more add_executable() or add_library() statements. Add the targets made by the add_executable and/or add_library() to a list. Add an export() command that is passed the list of target names and generates a something.cmake file. Running "cmake" on this file should work as expected at this point. Modify the list such that it also contains an "extra" target in it that doesn't really exist. Running "cmake" on this file will cause a segfault. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2013-03-20 07:56 Jay Sistar New Issue ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
