
Revert commit 5fcadc481e
(MSVC: Default to -ZI instead of /Zi for x86
and x64, 2022-05-24). The `-ZI` flag is incompatible with the `-GL`
flag used for IPO, and so is not an unconditionally better default.
Revert the change pending future design of a first-class setting for
MSVC debug info format that can be automatically reconciled with IPO
settings.
That commit introduced policy CMP0138, but we already have later policy
numbers used too. Leave placeholder text to avoid policy renumbering.
Issue: #23607, #10189
13 lines
395 B
CMake
13 lines
395 B
CMake
include(Platform/Windows-MSVC)
|
|
if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 18.0)
|
|
set(_FS_C " /FS")
|
|
endif()
|
|
__windows_compiler_msvc(C)
|
|
|
|
if((NOT DEFINED CMAKE_DEPENDS_USE_COMPILER OR CMAKE_DEPENDS_USE_COMPILER)
|
|
AND CMAKE_GENERATOR MATCHES "Makefiles|WMake"
|
|
AND CMAKE_DEPFILE_FLAGS_C)
|
|
# dependencies are computed by the compiler itself
|
|
set(CMAKE_C_DEPENDS_USE_COMPILER TRUE)
|
|
endif()
|