[cmake-developers] [CMake 0015436]: ninja generator fails to produce include statement for rules

Mantis Bug Tracker mantis at public.kitware.com
Sat Mar 7 06:24:22 EST 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15436 
====================================================================== 
Reported By:                Benjamin Schindler
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15436
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-03-07 06:24 EST
Last Modified:              2015-03-07 06:24 EST
====================================================================== 
Summary:                    ninja generator fails to produce include statement
for rules
Description: 
I tried now cmake-3.0, 2.8.11 and 3.1 and all exhibit this issue: 

I have a very simple project (helloworld would suffice) and use the ninja
generator. The project fails to build with: 

ninja: error: build.ninja:20: unknown build rule 'CXX_COMPILER'

Upon inspection, I noted that on the top, older generators produced this line in
the ninja generator: 

#############################################
# Include rules file.

include rules.ninja

This is not present in the tested versions thus leading to the described bug. 

Steps to Reproduce: 
Create hello world project, produce ninja file and build. Should lead to: 

ninja: error: build.ninja:20: unknown build rule 'CXX_COMPILER'

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-03-07 06:24 Benjamin SchindlerNew Issue                                    
======================================================================



More information about the cmake-developers mailing list