[cmake-developers] wlink command-line parsing

Brad King brad.king at kitware.com
Wed Mar 26 15:31:39 EDT 2014


On 03/26/2014 03:23 PM, Jiri Malak wrote:
>> On 03/26/2014 02:45 PM, Jiri Malak wrote:
>>> For unix like system cmdl is reconstruct from argv by aproximation one
>>> space as separator between each item. Next is processed as characters stream.
>>
>> Is that done on Windows too?
> 
> No there is get cmdl directly from OS.
> 
>> The shell consumed the single quotes so wlink will not see them.
> 
> It is my mistake, I forgot that single qoutes are also consumed by shell.

Therefore the useSingleQuote API change is specific to the Windows
wlink as I originally claimed.  A different implementation will
be needed for wlink on POSIX platforms as I stated in my last
response:

> Instead the object names themselves should each be
> single-quoted before being sent through the normal double-quoting
> for link command-line generation.

-Brad




More information about the cmake-developers mailing list