MSVC: don't opt into dyndep support

Instead, just set the variables for how scanning works since that is
part of the compiler mechanisms.

Fixes: #24198
This commit is contained in:
Ben Boeckel
2022-11-28 17:56:17 -05:00
parent 90907c8ff9
commit 12e4bc73cb
3 changed files with 4 additions and 2 deletions
-1
View File
@@ -79,7 +79,6 @@ elseif (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 16.0)
endif()
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "19.34")
set(CMAKE_EXPERIMENTAL_CXX_MODULE_DYNDEP 1)
string(CONCAT CMAKE_EXPERIMENTAL_CXX_SCANDEP_SOURCE
"<CMAKE_CXX_COMPILER> <DEFINES> <INCLUDES> <FLAGS> <SOURCE> -nologo -TP"
" -showIncludes"