forked from qt-creator/qt-creator
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 <eike.ziller@qt.io>
This commit is contained in:
@@ -196,9 +196,7 @@ function(qtc_enable_sanitize _target _sanitize_flags)
|
|||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(qtc_deeper_concept_diagnostic_depth _target)
|
function(qtc_deeper_concept_diagnostic_depth _target)
|
||||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
target_compile_options("${_target}" PRIVATE $<$<COMPILE_LANG_AND_ID:CXX,GNU>:-fconcepts-diagnostics-depth=8>)
|
||||||
target_compile_options("${_target}" PUBLIC -fconcepts-diagnostics-depth=8)
|
|
||||||
endif()
|
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(qtc_add_link_flags_no_undefined target)
|
function(qtc_add_link_flags_no_undefined target)
|
||||||
|
Reference in New Issue
Block a user