The paths output from llvm-config --cmakedir and from clang --print-libgcc-file-name can contain backslashes, while CMake can't handle the paths in this form.
This matches what compiler-rt already does (since SVN r203789 and r293195).
Differential D48356
[libcxx] [CMake] Convert paths to the right form in standalone builds on Windows mstorsjo on Jun 20 2018, 2:58 AM. Authored by
Details The paths output from llvm-config --cmakedir and from clang --print-libgcc-file-name can contain backslashes, while CMake can't handle the paths in this form. This matches what compiler-rt already does (since SVN r203789 and r293195).
Diff Detail Event TimelineComment Actions Looks good with the quotes added.
|
Nit: cmake recommends always putting quotes around the path argument to ensure it's treated as a single argument, i.e.
That needs to happen in all other uses as well.