mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
c++modules: Fix clang *.modules.json path on Windows
Before it would result in us writing the unescaped backslashes to `CMakeCXXCompiler.cmake` resulting in invalid escape characters causing the configure to error out.
This commit is contained in:
1 parent
6fcbe8d450
commit
aac53316e8
1 file changed
+2
-1
@@ -23,7 +23,8 @@ function (_cmake_cxx_find_modules_json)
|
||||
set(CMAKE_CXX_COMPILER_IMPORT_STD_ERROR_MESSAGE "Could not find `${_clang_modules_json_impl}.modules.json` resource" PARENT_SCOPE)
|
||||
return ()
|
||||
endif ()
|
||||
set(CMAKE_CXX_STDLIB_MODULES_JSON "${_clang_libcxx_modules_json_file}" PARENT_SCOPE)
|
||||
cmake_path(CONVERT "${_clang_libcxx_modules_json_file}" TO_CMAKE_PATH_LIST CMAKE_CXX_STDLIB_MODULES_JSON NORMALIZE)
|
||||
set(CMAKE_CXX_STDLIB_MODULES_JSON "${CMAKE_CXX_STDLIB_MODULES_JSON}" PARENT_SCOPE)
|
||||
endif ()
|
||||
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "18.1.2" AND
|
||||
|
||||
Reference in new issue
Block a user