CMake: Do not limit source_group creation to Xcode and VS

source_group is used by various IDEs, including Qt Creator,
so it makes sense to do that for other generators too.

Amends 06ea3e3994b38e5fe9ac4f33044b0efa1f1be294

Pick-to: 6.9
Change-Id: I32334d658ea5a74a9e5f2a7fab2c1f531c099901
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Eike Ziller 2025-04-03 15:39:29 +02:00
parent 6ead92b459
commit f302a312dc

View File

@ -861,11 +861,6 @@ function(_qt_internal_finalize_target_defer target)
endfunction()
function(_qt_internal_finalize_source_groups target)
if(NOT ("${CMAKE_GENERATOR}" STREQUAL "Xcode"
OR "${CMAKE_GENERATOR}" MATCHES "^Visual Studio"))
return()
endif()
get_target_property(sources ${target} SOURCES)
if(NOT sources)
return()