Skip to content
  • Brad King's avatar
    VS: Fix quoting of special characters in cmake re-run check commands · f8f3cb8d
    Brad King authored
    
    
    Fix our calls to `AddCustomCommandToOutput` for adding cmake re-run
    check commands to disable old-style quoting in favor of the full quoting
    logic.  This is necessary when paths contain special characters like `&`
    that old-style quoting logic does not handle.
    
    This also requires us to expand the `$(SolutionPath)` placeholder
    explicitly because otherwise its expanded value will no longer be quoted
    correctly.  As a side effect, this fixes the value in VS 10 and above
    where the placeholder may be undefined when driving the build through
    MSBuild without the `.sln` file.
    
    Reported-by: default avatarSteven Cook <sc@harshbutfair.org>
    Fixes: #16585
    f8f3cb8d