From b7ec18cfdb76be6bd078c6036be2bd2a6d55823b Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Fri, 7 Mar 2025 11:42:24 +0800 Subject: [PATCH] cmake: don't pass ftemplate-depth with clang-cl clang-cl does not support -ftemplate-depth. so we should not pass it when MSVC is defined. Pick-to: 6.8 Change-Id: I7f411187c476fa275b677f96a19f782262dc4545 Reviewed-by: Alexandru Croitor Reviewed-by: Thiago Macieira (cherry picked from commit 39015c049b3f39a27737236b6740f7f5038ab75b) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/CMakeLists.txt b/src/corelib/CMakeLists.txt index 8e72caa9a5e..6a2334bf8c8 100644 --- a/src/corelib/CMakeLists.txt +++ b/src/corelib/CMakeLists.txt @@ -493,7 +493,7 @@ qt_internal_extend_target(Core SOURCES ${core_version_tagging_files} ) -if(GCC OR CLANG) +if((GCC OR CLANG) AND NOT MSVC) # qglobal.cpp has #include moc_qnamespace.cpp, so increase the template # depth for it due to the size of the Qt namespace set_source_files_properties(global/qglobal.cpp PROPERTIES