[cmake-developers] [CMake 0013067]: Ninja: Invalid build.ninja after hitting CMake error. "unknown build rule 'RERUN_CMAKE'"
Mantis Bug Tracker
mantis at public.kitware.com
Mon Mar 26 10:56:48 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13067
======================================================================
Reported By: Matthew McCormick
Assigned To:
======================================================================
Project: CMake
Issue ID: 13067
Category: (No Category)
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-03-26 10:56 EDT
Last Modified: 2012-03-26 10:56 EDT
======================================================================
Summary: Ninja: Invalid build.ninja after hitting CMake
error. "unknown build rule 'RERUN_CMAKE'"
Description:
(Using CMake master (http://public.kitware.com/Bug/view.php?id=46#c2.8.8rc1))
I successfully generated a project with the Ninja generator.
Then, I edit the CMakeLists.txt and introduce and error (as I often do ;-P),
e.g., a non-existing file name to add_executable:
$ ninja
[1/1] Re-running CMake...
FAILED: /home/matt/apps/cmake_rb/bin/cmake -H/home/matt/progs/calaTK
-B/home/matt/apps/calatk_rdb
-- Configuring done
CMake Error at Code/Testing/CMakeLists.txt:231 (add_executable):
Cannot find source file:
calatkApplicationImageFileNameInputesTest.cxx
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
-- Build files have been written to: /home/matt/apps/calatk_rdb
ninja: ERROR: rebuilding 'build.ninja': subcommand failed
I fix the error, then I re-run ninja, and:
$ ninja
ninja: ERROR: build.ninja:18: unknown build rule 'RERUN_CMAKE'
build build.ninja: RERUN_CMAKE | /home/matt/apps/calatk_rdb/CMakeFiles/C...
^ near here
build.ninja is attached
Running cmake manually fixes the error, but it would be nice if that was not
necessary.
Steps to Reproduce:
see above
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-03-26 10:56 Matthew McCormickNew Issue
2012-03-26 10:56 Matthew McCormickFile Added: build.ninja
======================================================================
More information about the cmake-developers
mailing list