[CMake] Convert paths to the right form in standalone builds on Windows
authorMartin Storsjo <martin@martin.st>
Wed, 20 Jun 2018 20:59:18 +0000 (20:59 +0000)
committerMartin Storsjo <martin@martin.st>
Wed, 20 Jun 2018 20:59:18 +0000 (20:59 +0000)
commitdd75eb531ded76380cd39f953aba9913a811fb6d
tree0a4f5faf29aae5e91000980995545ea119d4222e
parent3d1c8c97b870ac980bb45962de4578adbc0852cc
[CMake] Convert paths to the right form in standalone builds on Windows

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 Revision: https://reviews.llvm.org/D48355

llvm-svn: 335171
libcxxabi/cmake/Modules/HandleCompilerRT.cmake
libcxxabi/cmake/Modules/HandleOutOfTreeLLVM.cmake