[cmake-developers] [CMake 0015104]: ExternalAdd_Project cannot pass strings containing quotes to command line

Mantis Bug Tracker mantis at public.kitware.com
Mon Aug 25 09:52:30 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15104 
====================================================================== 
Reported By:                Bryan Zimmerman
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15104
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-08-25 09:52 EDT
Last Modified:              2014-08-25 09:52 EDT
====================================================================== 
Summary:                    ExternalAdd_Project cannot pass strings containing
quotes to command line
Description: 
it is impossible to send a command such as b2.exe cxxflags="/MT" to the command
line.  

If the quotes are escaped with \" then the '\"' will pass through to the command
line instead of the expected '"'.

The workaround is to write the commands to a file where the \" works correctly
and then call that file as the command.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-08-25 09:52 Bryan ZimmermanNew Issue                                    
======================================================================



More information about the cmake-developers mailing list