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                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to