Skip to content

VS: Quote custom command arguments containing semicolons

Brad King requested to merge brad.king/cmake:vs-quote-semicolons into master

The GoogleTest module needs this to pass the TEST_EXECUTOR definition to its GoogleTestAddTests.cmake helper script in the POST_BUILD command since !9174 (merged). Previously it worked only if other characters, such as spaces, caused the argument to be quoted. This was exposed by running the RunCMake.GoogleTest test in a path without spaces.

Reported-by: @gcampbell-msft
Backport: release
Manual-backport: release-3.29

Edited by Brad King

Merge request reports