MantisBT - CMake
View Issue Details
0015104CMakeCMakepublic2014-08-25 09:522016-06-10 14:31
Bryan Zimmerman 
Kitware Robot 
normalmajoralways
closedmoved 
Windows8.1x64
CMake 3.0.1 
 
0015104: ExternalProject_Add cannot pass strings containing quotes to command line
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.
No tags attached.
Issue History
2014-08-25 09:52Bryan ZimmermanNew Issue
2014-08-27 09:22Brad KingSummaryExternalAdd_Project cannot pass strings containing quotes to command line => ExternalProject_Add cannot pass strings containing quotes to command line
2014-08-27 09:23Brad KingNote Added: 0036680
2016-06-10 14:29Kitware RobotNote Added: 0042612
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0036680)
Brad King   
2014-08-27 09:23   
Please provide a more complete example, such as the entire ExternalProject_Add call.
(0042612)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.