View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012551CMakeCMakepublic2011-11-02 08:092011-12-16 17:23
ReporterPaul Gideon Dann 
Assigned ToAlex Neundorf 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
Platformx86_64OSArchLinuxOS Version
Product VersionCMake 2.8.6 
Target VersionCMake 2.8.7Fixed in VersionCMake 2.8.7 
Summary0012551: New CMAKE_AUTOMOC feature breaks when re-configuring
DescriptionWhen 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.
TagsNo tags attached.
Attached Filesbz2 file icon testcase.tar.bz2 [^] (784 bytes) 2011-11-02 08:09

 Relationships

  Notes
(0027720)
Alex Neundorf (developer)
2011-11-03 18:04

cmake::GetCMakeCommand() returned a wrong path when called from ccmake, if ccmake has been started via the PATH.
Fixed and merged into next. Should be in 2.8.7.

 Issue History
Date Modified Username Field Change
2011-11-02 08:09 Paul Gideon Dann New Issue
2011-11-02 08:09 Paul Gideon Dann File Added: testcase.tar.bz2
2011-11-02 08:33 Brad King Assigned To => Alex Neundorf
2011-11-02 08:33 Brad King Status new => assigned
2011-11-03 18:04 Alex Neundorf Note Added: 0027720
2011-11-03 18:04 Alex Neundorf Status assigned => closed
2011-11-03 18:04 Alex Neundorf Resolution open => fixed
2011-12-16 17:23 David Cole Fixed in Version => CMake 2.8.7
2011-12-16 17:23 David Cole Target Version => CMake 2.8.7


Copyright © 2000 - 2018 MantisBT Team