The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=13702 ====================================================================== Reported By: Nick Hutchinson Assigned To: ====================================================================== Project: CMake Issue ID: 13702 Category: CMake Reproducibility: always Severity: crash Priority: normal Status: new ====================================================================== Date Submitted: 2012-11-19 18:07 NZDT Last Modified: 2012-11-19 18:07 NZDT ====================================================================== Summary: CMake crashes when reconfiguring build Description: Attached is a reduced test case that reliably crashes CMake.
Steps to Reproduce: 1. Execute the following commands: ~~~~~ mkdir build && cd build cmake ../path/to/source/folder -DCMAKE_C_COMPILER=cc -DFOOBAR=0 ~~~~~ CMake should abort the configure with the message: "CMake Error at CMakeLists.txt:8 (message): FOOBAR was not set" 2. Execute the following command: cmake ../path/to/source/folder -DCMAKE_C_COMPILER=cc -DFOOBAR=1 Expected behaviour: CMake reconfigures the project. Actual behaviour: CMake displays the following message, then crashes: ~~~~~~ -- Configuring done You have changed variables that require your cache to be deleted. Configure will be re-run and you may have to reset some variables. The following variables have changed: CMAKE_C_COMPILER= cc CMake Error at CMakeLists.txt:3 (add_library): add_library cannot create imported target "testlib" because another target with the same name already exists. [1] 20462 segmentation fault (core dumped) cmake ../ -DCMAKE_C_COMPILER=cc -DFOOBAR=1 Additional Information: Core dump is included in the attachment. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2012-11-19 18:07 Nick HutchinsonNew Issue 2012-11-19 18:07 Nick HutchinsonFile Added: CMake Crash.zip ====================================================================== -- 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
