[cmake-developers] [CMake 0013728]: Ninja file generated by CMake is invalid

Mantis Bug Tracker mantis at public.kitware.com
Fri Nov 23 04:13:10 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13728 
====================================================================== 
Reported By:                JussiP
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13728
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-11-23 04:13 EST
Last Modified:              2012-11-23 04:13 EST
====================================================================== 
Summary:                    Ninja file generated by CMake is invalid
Description: 
When generating a Ninja build system for Scribus, the resulting build.ninja is
invalid. The following error is printed when running Ninja:

ninja: error: build.ninja:6397: bad $-escape (literal $ must be written as $$)
  FLAGS = $(CMAKE_CXX_FLAGS) -fPIC -O2 -Wall -fPIC -Iscribus/third_party...
          ^ near here



Steps to Reproduce: 
Check out Scribus from git:

git clone git://git.scribus.net/scribus.git

Run CMake with the ninja backend. Run Ninja.


Additional Information: 
The error is caused by the parentheses surrounding the word CMAKE_CXX_FLAGS.
Manually editing the Ninja file and removing the parentheses in all locations
they appear fixes the issue and running Ninja will work correctly.

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-11-23 04:13 JussiP         New Issue                                    
======================================================================




More information about the cmake-developers mailing list