mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
In commita624a3e1b3(Ninja: Use deps=gcc for Intel Compiler on Windows, 2019-01-30, v3.14.0-rc1~30^2) we forgot to account for commit6d74e7870b(Ninja: Add dependencies on system-provided header files, 2016-03-15, v3.6.0-rc1~265^2).
28 lines
939 B
CMake
28 lines
939 B
CMake
include(Platform/Windows-Intel)
|
|
__windows_compiler_intel(C)
|
|
|
|
set(CMAKE_DEPFILE_FLAGS_C "-QMD -QMT <DEP_TARGET> -QMF <DEP_FILE>")
|
|
set(CMAKE_C_DEPFILE_FORMAT gcc)
|
|
|
|
if(CMAKE_GENERATOR MATCHES "^Ninja")
|
|
if(_CMAKE_NINJA_VERSION VERSION_LESS 1.9)
|
|
# This ninja version is too old to support the Intel depfile format.
|
|
# Fall back to msvc depfile format.
|
|
set(CMAKE_DEPFILE_FLAGS_C "/showIncludes")
|
|
set(CMAKE_C_DEPFILE_FORMAT msvc)
|
|
endif()
|
|
endif()
|
|
|
|
if((NOT DEFINED CMAKE_DEPENDS_USE_COMPILER OR CMAKE_DEPENDS_USE_COMPILER)
|
|
AND CMAKE_GENERATOR MATCHES "Makefiles|WMake")
|
|
# dependencies are computed by the compiler itself
|
|
set(CMAKE_C_DEPENDS_USE_COMPILER TRUE)
|
|
endif()
|
|
|
|
if("${CMAKE_SOURCE_DIR}${CMAKE_BINARY_DIR}" MATCHES " ")
|
|
# The Intel compiler does not properly escape spaces in a depfile.
|
|
# Fall back to msvc depfile format.
|
|
set(CMAKE_DEPFILE_FLAGS_C "/showIncludes")
|
|
set(CMAKE_C_DEPFILE_FORMAT msvc)
|
|
endif()
|