ClangClCompileRules.cmake 355 B

12345
  1. # clang-cl interprets paths starting with /U as macro undefines, so we need to
  2. # put a -- before the input file path to force it to be treated as a path.
  3. string(REPLACE "-c <SOURCE>" "-c -- <SOURCE>" CMAKE_C_COMPILE_OBJECT "${CMAKE_C_COMPILE_OBJECT}")
  4. string(REPLACE "-c <SOURCE>" "-c -- <SOURCE>" CMAKE_CXX_COMPILE_OBJECT "${CMAKE_CXX_COMPILE_OBJECT}")