forked from OSchip/llvm-project
[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:
parent
89c2e733e8
commit
7f49dc4966
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue