• Brad King's avatar
    Ninja: Detect MSVC /showIncludes prefix with compiler flags (#15596) · 109a7a24
    Brad King authored
    Move detection over to the compiler id logic where we have already
    constructed the list of compiler flags from ARG1 and CMAKE_<LANG>_FLAGS.
    Pass the flags when we execute "cl" with "/showIncludes".  Also pass "/c"
    because we only need to compile, not link.  Check the compiler process
    exit code before trusting its output.
    109a7a24
CMakeCXXCompiler.cmake.in 2.58 KB