[CMake][libcxx] Don't wrap __config_site path in quotes on Windows

This is failing to compile on Windows because clang-cl is trying to
use the path with quotes, dropping them resolves the issue.

Differential Revision: https://reviews.llvm.org/D73525
This commit is contained in:
Petr Hosek 2020-01-27 19:28:59 -08:00
parent 89c2e733e8
commit 7f49dc4966

View File

@ -878,7 +878,7 @@ endif()
function(cxx_add_config_site target)
if (LIBCXX_NEEDS_SITE_CONFIG)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC" OR "${CMAKE_CXX_SIMULATE_ID}" STREQUAL "MSVC")
target_compile_options(${target} PUBLIC "/FI\"${site_config_path}\"")
target_compile_options(${target} PUBLIC /FI "${site_config_path}")
else()
target_compile_options(${target} PUBLIC -include "${site_config_path}")
endif()