mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
Each source compilation generates a dependencies file. These dependencies files are consolidated in one file per target. This consolidation is done as part of command 'cmake -E cmake_depends` launched before evaluation of makefile dependency graph. The consolidation uses the same approach as `CMake` dependencies management. Fixes: #21321
14 lines
430 B
CMake
14 lines
430 B
CMake
include(Platform/Windows-MSVC)
|
|
set(_COMPILE_CXX " /TP")
|
|
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 18.0)
|
|
set(_FS_CXX " /FS")
|
|
endif()
|
|
__windows_compiler_msvc(CXX)
|
|
|
|
if((NOT DEFINED CMAKE_DEPENDS_USE_COMPILER OR CMAKE_DEPENDS_USE_COMPILER)
|
|
AND CMAKE_GENERATOR MATCHES "Makefiles|WMake"
|
|
AND CMAKE_DEPFILE_FLAGS_CXX)
|
|
# dependencies are computed by the compiler itself
|
|
set(CMAKE_CXX_DEPENDS_USE_COMPILER TRUE)
|
|
endif()
|