From 3bf918e29359ff3c3aa10b477d52d577235ca40b Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Thu, 6 Mar 2025 09:45:27 +0100 Subject: [PATCH] Increase concept diagnostics depth only for C++ Before it was tested if the C++ compiler would be GCC. It was not testing if the compiler would be C++. Fixes: QTCREATORBUG-32583 Change-Id: I2ca3614dc4a429bc594fade81b86cedceb2ef98c Reviewed-by: Eike Ziller --- cmake/QtCreatorAPIInternal.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmake/QtCreatorAPIInternal.cmake b/cmake/QtCreatorAPIInternal.cmake index 37e0f017b3d..ce7489b4c18 100644 --- a/cmake/QtCreatorAPIInternal.cmake +++ b/cmake/QtCreatorAPIInternal.cmake @@ -196,9 +196,7 @@ function(qtc_enable_sanitize _target _sanitize_flags) endfunction() function(qtc_deeper_concept_diagnostic_depth _target) - if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - target_compile_options("${_target}" PUBLIC -fconcepts-diagnostics-depth=8) - endif() + target_compile_options("${_target}" PRIVATE $<$:-fconcepts-diagnostics-depth=8>) endfunction() function(qtc_add_link_flags_no_undefined target)