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 6.9 Change-Id: I7f411187c476fa275b677f96a19f782262dc4545 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
3617409325
commit
39015c049b
@ -495,7 +495,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user