[cmake-developers] [CMake 0012551]: New CMAKE_AUTOMOC feature breaks when re-configuring

Mantis Bug Tracker mantis at public.kitware.com
Wed Nov 2 08:09:43 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12551 
====================================================================== 
Reported By:                Paul Gideon Dann
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12551
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-11-02 08:09 EDT
Last Modified:              2011-11-02 08:09 EDT
====================================================================== 
Summary:                    New CMAKE_AUTOMOC feature breaks when re-configuring
Description: 
When re-configuring & generating with ccmake, the automoc build.cmake file adds
a leading slash to the "cmake" command, causing it to break.

Follow the steps below using the testcase provided to reproduce the bug.

Steps to Reproduce: 
* Create "build" directory and run "cmake .." inside.
* Note that running "make" at this point yields a good compile.
* Start again with a clean directory, but instead of building, run "ccmake .."
* Configure & Generate
* Try to build again

You'll get a "/cmake: Command not found" error.  This is caused by a leading
slash that has been introduced in CMakeFiles/example_automoc.dir/build.make
(line 48), in the CMakeFiles/example_automoc rule.  Removing the slash from
"/cmake" fixes the problem, and the testcase builds correctly.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-11-02 08:09 Paul Gideon DannNew Issue                                    
2011-11-02 08:09 Paul Gideon DannFile Added: testcase.tar.bz2                   

======================================================================




More information about the cmake-developers mailing list